call add_parsable_certificates instead of add for root_store
This commit is contained in:
parent
4c2cbc9c09
commit
9c75e81e63
@ -41,12 +41,11 @@ pub fn quic_init(iface: &Option<Interface>) -> Endpoint {
|
||||
*/
|
||||
|
||||
let mut root_store = rustls::RootCertStore::empty();
|
||||
rustls_native_certs::load_native_certs()
|
||||
let certs = rustls_native_certs::load_native_certs()
|
||||
.expect("could not load platform certs")
|
||||
.into_iter()
|
||||
.for_each(|cert| {
|
||||
root_store.add(cert).unwrap();
|
||||
});
|
||||
.collect::<Vec<_>>();
|
||||
root_store.add_parsable_certificates(certs);
|
||||
|
||||
let mut rustls_config = rustls::ClientConfig::builder()
|
||||
// .with_root_certificates(rustls::RootCertStore::empty())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user