Registry / crypto / rcgen
library0.14.7rscratesunverified

Rust X.509 certificate generator for creating self-signed certificates.

# Cargo.toml [dependencies] rcgen = "0.14.7"
INSTALL
IMPORT
SIG · RCGEN
R
rcgen
cryptorustv0.14.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CertificateParams
use rcgen::CertificateParams;

Generates a self-signed X.509 certificate for a given domain.

use rcgen::{CertificateParams, KeyPair, SelfSignedCertificate}; fn main() -> Result<(), rcgen::Error> { let params = CertificateParams::new(vec!["example.com".to_string()])?; let key_pair = KeyPair::generate()?; let cert = SelfSignedCertificate::new(params, &key_pair)?; println!("Certificate: {}", cert.pem()); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.14.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
rcgen — cargo add rcgen · libregistry