Struct openssl::x509::X509Ref

source ·
pub struct X509Ref(_);
Expand description

Reference to X509.

Implementations

Returns this certificate’s subject name.

This corresponds to X509_get_subject_name.

Returns this certificate’s issuer name.

This corresponds to X509_get_issuer_name.

Returns this certificate’s subject alternative name entries, if they exist.

This corresponds to X509_get_ext_d2i called with NID_subject_alt_name.

Returns this certificate’s issuer alternative name entries, if they exist.

This corresponds to X509_get_ext_d2i called with NID_issuer_alt_name.

Returns a digest of the DER representation of the certificate.

This corresponds to X509_digest.

👎Deprecated since 0.10.9: renamed to digest

Returns the certificate’s Not After validity period.

Returns the certificate’s Not Before validity period.

Returns the certificate’s signature

Returns the certificate’s signature algorithm.

Returns the list of OCSP responder URLs specified in the certificate’s Authority Information Access field.

Checks that this certificate issued subject.

Returns this certificate’s serial number.

This corresponds to X509_get_serialNumber.

Serializes the certificate into a PEM-encoded X509 structure.

The output will have a header of -----BEGIN CERTIFICATE-----.

This corresponds to PEM_write_bio_X509.

Serializes the certificate into a DER-encoded X509 structure.

This corresponds to i2d_X509.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Immutably borrows from an owned value. Read more
The raw C type.
Constructs a shared instance of this type from its raw type.
Constructs a mutable reference of this type from its raw type.
Returns a raw pointer to the wrapped value.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more

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.