mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Remove unsupported option verify_mode to ssl.wrap_socket.
This commit is contained in:
parent
a702a95357
commit
e1a86665ae
@ -166,7 +166,7 @@ else:
|
|||||||
# TLSv1.0 is the only TLS version Python < 2.7.9 supports
|
# TLSv1.0 is the only TLS version Python < 2.7.9 supports
|
||||||
# (besides SSLv2 and v3, which are known to be insecure)
|
# (besides SSLv2 and v3, which are known to be insecure)
|
||||||
conn = ssl.wrap_socket(conn, certfile=certfile, ca_certs=ca_file,
|
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:
|
if trusted_fingerprints:
|
||||||
check_certificate_fingerprint(conn, trusted_fingerprints)
|
check_certificate_fingerprint(conn, trusted_fingerprints)
|
||||||
elif verify:
|
elif verify:
|
||||||
|
Loading…
Reference in New Issue
Block a user