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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.