remove disable cert verification because it panics

This commit is contained in:
Toshit Chawda 2024-08-31 20:38:52 -07:00
parent 55e1ef92bf
commit f0293c53f1
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
4 changed files with 19 additions and 91 deletions

View file

@ -87,18 +87,9 @@ impl StreamProvider {
}
}
let client_config = if options.disable_certificate_validation {
ClientConfig::builder()
.dangerous()
.with_custom_certificate_verifier(Arc::new(NoCertificateVerification(
default_provider(),
)))
.with_no_client_auth()
} else {
ClientConfig::builder()
.with_root_certificates(certstore)
.with_no_client_auth()
};
let client_config = ClientConfig::builder()
.with_root_certificates(certstore)
.with_no_client_auth();
let client_config = Arc::new(client_config);
Ok(Self {