Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/dist/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ mod server {
server_id.addr()
);
let mut client_builder = reqwest::blocking::ClientBuilder::new();
// Workaround reqwest ignoring root certificate when openssl backend is used.
// https://github.com/seanmonstar/reqwest/issues/1260
client_builder = client_builder.use_rustls_tls();
// Add all the certificates we know about
client_builder = client_builder.add_root_certificate(
reqwest::Certificate::from_pem(&cert_pem)
Expand Down Expand Up @@ -1148,6 +1151,9 @@ mod client {
cert_pem: Vec<u8>,
) -> Result<()> {
let mut client_async_builder = reqwest::ClientBuilder::new();
// Workaround reqwest ignoring root certificate when openssl backend is used.
// https://github.com/seanmonstar/reqwest/issues/1260
client_async_builder = client_async_builder.use_rustls_tls();
// Add all the certificates we know about
client_async_builder = client_async_builder.add_root_certificate(
reqwest::Certificate::from_pem(&cert_pem)
Expand Down
Loading