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§
Sourcefn private_key_der_rustls(&self) -> PrivateKeyDer<'static>
fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>
Convert the private key to a PrivateKeyDer<'static> (PKCS#8 variant).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl RustlsPrivateKeyExt for EcdsaKeyPair
Available on crate feature ecdsa only.
impl RustlsPrivateKeyExt for EcdsaKeyPair
Available on crate feature
ecdsa only.fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>
Source§impl RustlsPrivateKeyExt for Ed25519KeyPair
Available on crate feature ed25519 only.
impl RustlsPrivateKeyExt for Ed25519KeyPair
Available on crate feature
ed25519 only.fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>
Source§impl RustlsPrivateKeyExt for RsaKeyPair
Available on crate feature rsa only.
impl RustlsPrivateKeyExt for RsaKeyPair
Available on crate feature
rsa only.fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>
Source§impl RustlsPrivateKeyExt for X509Cert
Available on crate feature x509 only.
impl RustlsPrivateKeyExt for X509Cert
Available on crate feature
x509 only.fn private_key_der_rustls(&self) -> PrivateKeyDer<'static>
Source§impl RustlsPrivateKeyExt for X509Chain
Available on crate feature x509 only.
impl RustlsPrivateKeyExt for X509Chain
Available on crate feature
x509 only.