Module cert
Available on crate features
crypto and std only.Expand description
Certificate generation helpers.
Provides a backend pluggable self-signed certificate generator. The actual crypto provider is selected by cargo feature:
boring: generate using BoringSSL (viarama-boring), for stacks that already link boringssl and do not want a second crypto provider.aws-lc/ring: generate usingrcgen.
When several providers are enabled, boring is preferred. With none
enabled, certificate-generation functions return an error.
Modules§
- boring
boring - BoringSSL-backed self-signed certificate generation (feature
boring). - rcgen
aws-lcorring - rcgen-backed certificate generation (feature
aws-lc/ring).
Structs§
- Certificate
Authority Data - An issuing CA chain and its private key.
- Certificate
Subject - X.509 subject metadata. Service identities belong in SANs, not the CN.
- Certificate
Validity - Validity policy relative to certificate generation time.
- Leaf
Cert Config - Reusable policy for an end-entity server certificate.
- Leaf
Cert Request - One concrete leaf-certificate request.
- Self
Signed CaConfig - Configuration for a generated self-signed certificate authority.
Enums§
- Certificate
Identity - DNS or IP service identity encoded in a certificate’s SAN extension.
- Certificate
KeyKind - Key algorithm to use when generating a self-signed key pair.
- Generated
Server Auth Config - Configuration for generating static server-authentication material.
Functions§
- generate_
certificate_ authority boring - generate_
server_ auth boring - issue_
certificate_ authority_ leaf boring - spki_
sha256 - Compute the SHA-256 digest of the certificate’s
SubjectPublicKeyInfo.