diff --git a/src/client/builder.rs b/src/client/builder.rs index 781d6cc1..7f076896 100644 --- a/src/client/builder.rs +++ b/src/client/builder.rs @@ -24,7 +24,9 @@ pub fn build_client( let cert = get_cert(cert_path)?; client_builder.add_root_certificate(cert).use_rustls_tls() } else { - client_builder.danger_accept_invalid_certs(true) + client_builder + .danger_accept_invalid_certs(true) + .use_rustls_tls() } } else { client_builder.danger_accept_invalid_certs(true)