diff --git a/src/utils/net.py b/src/utils/net.py index b6a17938b..74e2fa981 100644 --- a/src/utils/net.py +++ b/src/utils/net.py @@ -166,7 +166,7 @@ else: # TLSv1.0 is the only TLS version Python < 2.7.9 supports # (besides SSLv2 and v3, which are known to be insecure) conn = ssl.wrap_socket(conn, certfile=certfile, ca_certs=ca_file, - ssl_version=ssl.PROTOCOL_TLSv1, verify_mode=ssl.CERT_NONE) + ssl_version=ssl.PROTOCOL_TLSv1) if trusted_fingerprints: check_certificate_fingerprint(conn, trusted_fingerprints) elif verify: