Skip to main content

RustlsPrivateKeyExt

Trait RustlsPrivateKeyExt 

Source
pub trait RustlsPrivateKeyExt {
    // Required method
    fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>;
}
Expand description

Extension trait to convert uselesskey fixtures into PrivateKeyDer.

Implemented for types that have a PKCS#8 DER private key.

Required Methods§

Source

fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>

Convert the private key to a PrivateKeyDer<'static> (PKCS#8 variant).

Implementations on Foreign Types§

Source§

impl RustlsPrivateKeyExt for EcdsaKeyPair

Available on crate feature ecdsa only.
Source§

impl RustlsPrivateKeyExt for Ed25519KeyPair

Available on crate feature ed25519 only.
Source§

impl RustlsPrivateKeyExt for RsaKeyPair

Available on crate feature rsa only.
Source§

impl RustlsPrivateKeyExt for X509Cert

Available on crate feature x509 only.
Source§

impl RustlsPrivateKeyExt for X509Chain

Available on crate feature x509 only.

Implementors§