Expand description
Add extensions to an X509
certificate or certificate request.
The extensions defined for X.509 v3 certificates provide methods for
associating additional attributes with users or public keys and for
managing relationships between CAs. The extensions created using this
module can be used with X509v3Context
objects.
§Example
use openssl::x509::extension::BasicConstraints;
use openssl::x509::X509Extension;
let mut bc = BasicConstraints::new();
let bc = bc.critical().ca().pathlen(1);
let extension: X509Extension = bc.build().unwrap();
Structs§
- Authority
KeyIdentifier - An extension that provides a means of identifying the public key corresponding to the private key used to sign a CRL.
- Basic
Constraints - An extension which indicates whether a certificate is a CA certificate.
- Extended
KeyUsage - An extension consisting of a list of usages indicating purposes for which the certificate public key can be used for.
- KeyUsage
- An extension consisting of a list of names of the permitted key usages.
- Subject
Alternative Name - An extension that allows additional identities to be bound to the subject of the certificate.
- Subject
KeyIdentifier - An extension that provides a means of identifying certificates that contain a particular public key.