Remove unsupported option verify_mode to ssl.wrap_socket.

This commit is contained in:
Valentin Lorentz 2016-02-24 07:43:21 +01:00
parent a702a95357
commit e1a86665ae

View File

@ -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: