pub struct Pkcs12Builder { /* private fields */ }

Implementations

The friendlyName used for the certificate and private key.

The private key.

The certificate.

An additional set of certificates to include in the archive beyond the one provided to build.

The encryption algorithm that should be used for the key

The encryption algorithm that should be used for the cert

Key iteration count, default is 2048 as of this writing

MAC iteration count, default is the same as key_iter.

Old implementations don’t understand MAC iterations greater than 1, (pre 1.0.1?), if such compatibility is required this should be set to 1.

MAC message digest type

👎Deprecated since 0.10.46: Use Self::{name, pkey, cert, build2} instead.

Deprecated.

Builds the PKCS#12 object.

This corresponds to PKCS12_create.

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.