Struct openssl::x509::X509Builder [] [src]

pub struct X509Builder(_);

A builder type which can create X509 objects.

Methods

impl X509Builder
[src]

Creates a new builder.

Sets the notAfter constraint on the certificate.

Sets the notBefore constraint on the certificate.

Sets the version of the certificate.

Note that the version is zero-indexed; that is, a certificate corresponding to version 3 of the X.509 standard should pass 2 to this method.

Sets the serial number of the certificate.

Sets the issuer name of the certificate.

Sets the subject name of the certificate.

Sets the public key associated with the certificate.

Returns a context object which is needed to create certain X509 extension values.

Set issuer to None if the certificate will be self-signed.

Adds an X509 extension value to the certificate.

Signs the certificate with a private key.

Consumes the builder, returning the certificate.