Module openssl::x509::extension

source ·
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§

  • An extension that provides a means of identifying the public key corresponding to the private key used to sign a CRL.
  • An extension which indicates whether a certificate is a CA certificate.
  • An extension consisting of a list of usages indicating purposes for which the certificate public key can be used for.
  • An extension consisting of a list of names of the permitted key usages.
  • An extension that allows additional identities to be bound to the subject of the certificate.
  • An extension that provides a means of identifying certificates that contain a particular public key.