Function rustls_server_config_from_pem_files

Source
pub fn rustls_server_config_from_pem_files<P: AsRef<Path>, Q: AsRef<Path>>(
    cert_file: P,
    key_file: Q,
    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 files. Protocols determines list of protocols that will be supported.