diff --git a/src/main.rs b/src/main.rs index 762961e..02db203 100644 --- a/src/main.rs +++ b/src/main.rs @@ -147,7 +147,17 @@ async fn main() -> ExitCode { }; - let server_crypto = match rustls::ServerConfig::builder() + let provider = rustls::crypto::aws_lc_rs::default_provider(); + let protocol = match rustls::ServerConfig::builder_with_provider(Arc::new(provider)) + .with_protocol_versions(&[&rustls::version::TLS13]) { + Ok(prot) => prot, + Err(e) => { + error!("Unable to intialize TLS protocol configuration: {}",e); + return ExitCode::FAILURE; + } + + }; + let server_crypto = match protocol .with_no_client_auth() .with_single_cert(certs, key) {