Trait rustls::ResolvesServerCert
source · [−]pub trait ResolvesServerCert: Send + Sync {
fn resolve(
&self,
server_name: Option<DNSNameRef<'_>>,
sigschemes: &[SignatureScheme]
) -> Option<CertifiedKey>;
}
Expand description
How to choose a certificate chain and signing key for use in server authentication.
Required methods
fn resolve(
&self,
server_name: Option<DNSNameRef<'_>>,
sigschemes: &[SignatureScheme]
) -> Option<CertifiedKey>
fn resolve(
&self,
server_name: Option<DNSNameRef<'_>>,
sigschemes: &[SignatureScheme]
) -> Option<CertifiedKey>
Choose a certificate chain and matching key given any server DNS name provided via SNI, and signature schemes.
The certificate chain is returned as a vec of Certificate
s,
the key is inside a SigningKey
.