Skip to main content

load_tls_server_config

Function load_tls_server_config 

Source
pub fn load_tls_server_config(
    cert_path: &str,
    key_path: &str,
) -> Result<ServerConfig, Box<dyn Error>>
Expand description

Loads the TLS configuration from the files and returns a ServerConfig.

The files should be structured as follows: cert.pem: The certificate file. key.pem: The private key file.