Skip to main content

create_tls_acceptor

Function create_tls_acceptor 

Source
pub fn create_tls_acceptor(config: &TlsServerConfig) -> Result<TlsAcceptor>
Expand description

Create a TLS acceptor from configuration

ยงErrors

Returns an error if loading the certificate or private key fails, or if building the TLS server configuration fails.