Function wtransport::tls::server::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.