[][src]Trait rustls::ServerCertVerifier

pub trait ServerCertVerifier: Send + Sync {
    fn verify_server_cert(
        &self,
        roots: &RootCertStore,
        presented_certs: &[Certificate],
        dns_name: DNSNameRef,
        ocsp_response: &[u8]
    ) -> Result<ServerCertVerified, TLSError>; }

Something that can verify a server certificate chain

Required methods

fn verify_server_cert(
    &self,
    roots: &RootCertStore,
    presented_certs: &[Certificate],
    dns_name: DNSNameRef,
    ocsp_response: &[u8]
) -> Result<ServerCertVerified, TLSError>

Verify a the certificate chain presented_certs against the roots configured in roots. Make sure that dns_name is quoted by the top certificate in the chain.

Loading content...

Implementors

Loading content...