pub fn rustls_server_config_from_pem_data<'a>(
cert: &'a [u8],
key: &'a [u8],
protocols: Protocols,
) -> Result<ServerConfig, Error>Available on crate feature
tls-rustls only.Expand description
The low-level function to retrieve configuration to further customization.
Creates the RusTLS server configuration. Certificates and key will be obtained from data. Protocols determines list of protocols that will be supported.