hickory_proto::rustls::tls_server

Function new_acceptor

Source
pub fn new_acceptor(
    cert: Vec<CertificateDer<'static>>,
    key: PrivateKeyDer<'static>,
) -> Result<ServerConfig, Error>
Available on crate feature dns-over-rustls only.
Expand description

Construct the new Acceptor with the associated pkcs12 data