pub fn tls_server_config(key_pair: &KeyPair) -> Result<ServerConfig>
Returns a TLS server configuration.