Skip to content

Commit

Permalink
fix: using rustls::ServerConfig::builder_with_provider() since rustls…
Browse files Browse the repository at this point in the history
… v0.23
  • Loading branch information
kolbma committed Sep 27, 2024
1 parent 34a34a1 commit b5df83c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ssl/rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,12 @@ impl RustlsContext {
}
};

let tls_conf = rustls::ServerConfig::builder()
.with_no_client_auth()
.with_single_cert(certificate_chain, private_key)?;
let tls_conf = rustls::ServerConfig::builder_with_provider(Arc::new(
rustls::crypto::aws_lc_rs::default_provider(),
))
.with_safe_default_protocol_versions()?
.with_no_client_auth()
.with_single_cert(certificate_chain, private_key)?;

Ok(Self(Arc::new(tls_conf)))
}
Expand Down

0 comments on commit b5df83c

Please sign in to comment.