From e1a86665aeb1febd8dc98e872f520e60a985b097 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 24 Feb 2016 07:43:21 +0100 Subject: [PATCH] Remove unsupported option verify_mode to ssl.wrap_socket. --- src/utils/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: