diff --git a/src/tls.rs b/src/tls.rs index aa7438752..ee1326141 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -246,6 +246,7 @@ impl TlsConfigBuilder { .with_single_cert_with_ocsp(cert, key, self.ocsp_resp) .map_err(TlsConfigError::InvalidKey)?; config.alpn_protocols = vec!["h2".into(), "http/1.1".into()]; + config.key_log = Arc::new(tokio_rustls::rustls::KeyLogFile::new()); config };