Trait pkcs8::ToPrivateKey
source · [−]pub trait ToPrivateKey {
fn to_pkcs8_der(&self) -> Result<PrivateKeyDocument>;
}
Expand description
Serialize a private key object to a PKCS#8 encoded document.
Required Methods
fn to_pkcs8_der(&self) -> Result<PrivateKeyDocument>
fn to_pkcs8_der(&self) -> Result<PrivateKeyDocument>
Serialize a PrivateKeyDocument
containing a PKCS#8-encoded private key.