Skip to main content

load_rustls_config

Function load_rustls_config 

Source
pub async fn load_rustls_config(
    cert_pem: impl AsRef<Path>,
    key_pem: impl AsRef<Path>,
) -> Result<RustlsConfig>
Expand description

Loads a TLS server config from a PEM-encoded certificate + private key pair on disk. This is the path for real deployments.