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:
+11
-1
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user