| Crates.io | rustls-cert-gen |
| lib.rs | rustls-cert-gen |
| version | 0.2.0 |
| created_at | 2024-03-29 12:04:54.717322+00 |
| updated_at | 2025-07-02 20:05:58.12621+00 |
| description | Rust X.509 certificate generator CLI |
| homepage | https://github.com/rustls/rcgen/tree/main/rustls-cert-gen |
| repository | https://github.com/rustls/rcgen |
| max_upload_size | |
| id | 1189911 |
| size | 64,633 |
rustls-cert-gen is a tool to generate TLS certificates. In its
current state it will generate a Root CA and an end-entity
certificate, along with private keys. The end-entity certificate will
be signed by the Root CA.
Having compiled the binary you can simply pass a path to output generated files.
cargo run -- -o output/dir
In the output directory you will find these files:
cert.pem (end-entity's X.509 certificate, signed by root-ca's key)cert.key.pem (end-entity's private key)root-ca.pem (ca's self-signed X.509 certificate)For a complete list of supported options:
rustls-cert-gen --help
pkcs_ecdsa_p256_sha256pkcs_ecdsa_p384_sha384pkcs_ed25519