pub trait RustlsChainExt {
// Required methods
fn chain_der_rustls(&self) -> Vec<CertificateDer<'static>>;
fn root_certificate_der_rustls(&self) -> CertificateDer<'static>;
}Expand description
Extension trait for X.509 certificate chains.
Provides the full chain in rustls format.
Required Methods§
Sourcefn chain_der_rustls(&self) -> Vec<CertificateDer<'static>>
fn chain_der_rustls(&self) -> Vec<CertificateDer<'static>>
Get the certificate chain as a Vec<CertificateDer> (leaf + intermediate, no root).
This is the format expected by rustls::ServerConfig.
Sourcefn root_certificate_der_rustls(&self) -> CertificateDer<'static>
fn root_certificate_der_rustls(&self) -> CertificateDer<'static>
Get the root CA certificate as a CertificateDer.
Use this to add to a RootCertStore for client-side verification.
Implementations on Foreign Types§
Source§impl RustlsChainExt for X509Chain
Available on crate feature x509 only.
impl RustlsChainExt for X509Chain
Available on crate feature
x509 only.