Skip to content

Commit

Permalink
config: avoid overriding native store root with SSL_CERT_FILE env
Browse files Browse the repository at this point in the history
  • Loading branch information
BiagioFesta committed Oct 5, 2023
1 parent b9e7e4d commit 286e693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wtransport/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ impl ClientConfigBuilder<WantsRootStore> {
fn native_cert_store() -> RootCertStore {
let mut root_store = RootCertStore::empty();

std::env::remove_var("SSL_CERT_FILE");

match rustls_native_certs::load_native_certs() {
Ok(certs) => {
for c in certs {
Expand Down

0 comments on commit 286e693

Please sign in to comment.