Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Try not accepting invalid certificates
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Pankov <work@michaelpankov.com>
  • Loading branch information
mkpankov committed Jul 13, 2020
1 parent f7298be commit 4914eee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion iml-agent/src/http_comms/crypto_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ pub fn get_id(pem: &[u8]) -> Result<Identity, ImlAgentError> {
pub fn create_client(id: Identity) -> Result<Client, ImlAgentError> {
Client::builder()
.use_rustls_tls()
.danger_accept_invalid_certs(true)
.identity(id)
.timeout(Duration::from_secs(900))
.build()
Expand Down

0 comments on commit 4914eee

Please sign in to comment.