Struct rcgen::Certificate
source · [−]pub struct Certificate { /* private fields */ }Expand description
A self signed certificate together with signing keys
Implementations
Generates a new certificate from the given parameters
Calculates a subject key identifier for the certificate subject’s public key. This key identifier is used in the SubjectKeyIdentifier X.509v3 extension.
Serializes the certificate to the binary DER format
Serializes the certificate, signed with another certificate’s key, in binary DER format
Serializes a certificate signing request in binary DER format
Return the certificate’s key pair
Serializes the certificate to the ASCII PEM format
This function is only available if rcgen is built with the “pem” feature
Serializes the certificate, signed with another certificate’s key, to the ASCII PEM format
This function is only available if rcgen is built with the “pem” feature
Serializes the certificate signing request to the ASCII PEM format
This function is only available if rcgen is built with the “pem” feature
Serializes the private key in PKCS#8 format
Panics if called on a remote key pair.
Serializes the private key in PEM format
Panics if called on a remote key pair.
This function is only available if rcgen is built with the “pem” feature