build_default_tls_config

Function build_default_tls_config 

Source
pub fn build_default_tls_config(identity: Identity) -> ServerConfig
Expand description

Builds a default TLS server configuration with safe defaults.

This function constructs a TLS server configuration with safe defaults. The configuration utilizes the identity (certificate and private key) specified in the input argument of the function.

Client authentication is not required in this configuration.

ยงArguments

  • identity: A reference to the identity containing the certificate chain and private key.