Skip to content

Commit

Permalink
switch to add_parsable_certificates method to add native root certs (#37
Browse files Browse the repository at this point in the history
)
  • Loading branch information
matthme authored Nov 12, 2024
1 parent 1a37601 commit 17c1880
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rust/sbd-client/src/raw_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,10 @@ fn priv_system_tls(
not(feature = "force_webpki_roots"),
any(target_os = "windows", target_os = "linux", target_os = "macos",),
))]
for cert in rustls_native_certs::load_native_certs()
.expect("failed to load system tls certs")
{
roots.add(cert).expect("failed to add cert to root");
}
roots.add_parsable_certificates(
rustls_native_certs::load_native_certs()
.expect("failed to load system tls certs"),
);

if danger_disable_certificate_check {
let v = rustls::client::WebPkiServerVerifier::builder(Arc::new(roots))
Expand Down

0 comments on commit 17c1880

Please sign in to comment.