Trait rustls::ServerCertVerifier [−][src]
pub trait ServerCertVerifier: Send + Sync { fn verify_server_cert(
&self,
roots: &RootCertStore,
presented_certs: &[Certificate],
dns_name: DNSNameRef<'_>,
ocsp_response: &[u8]
) -> Result<ServerCertVerified, TLSError>; }
Expand description
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>
[src]
fn verify_server_cert(
&self,
roots: &RootCertStore,
presented_certs: &[Certificate],
dns_name: DNSNameRef<'_>,
ocsp_response: &[u8]
) -> Result<ServerCertVerified, TLSError>
[src]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.