Setup protocol correctly

For some reason it is supposed to default to something and doesn't. No
clue why it doesn't work but we can manually set the provider instead
This commit is contained in:
2026-06-01 15:53:25 -07:00
parent 0fc73f1c85
commit 2b86e4443f
+11 -1
View File
@@ -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_no_client_auth()
.with_single_cert(certs, key) .with_single_cert(certs, key)
{ {