iroh_net::tls

Function make_server_config

Source
pub fn make_server_config(
    secret_key: &SecretKey,
    alpn_protocols: Vec<Vec<u8>>,
    keylog: bool,
) -> Result<QuicServerConfig, CreateConfigError>
Expand description

Create a TLS server configuration.

If keylog is true this will enable logging of the pre-master key to the file in the SSLKEYLOGFILE environment variable. This can be used to inspect the traffic for debugging purposes.