one CERT_REQUIRED is enough

This commit is contained in:
Christian Heimes 2013-11-22 00:39:38 +01:00
parent 1dbf61fa46
commit d6dc952e17
1 changed files with 0 additions and 1 deletions

View File

@ -1801,7 +1801,6 @@ else:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_REQUIRED context.verify_mode = ssl.CERT_REQUIRED
context.load_verify_locations(SIGNING_CA) context.load_verify_locations(SIGNING_CA)
context.verify_mode = ssl.CERT_REQUIRED
context.verify_flags = ssl.VERIFY_DEFAULT context.verify_flags = ssl.VERIFY_DEFAULT
# VERIFY_DEFAULT should pass # VERIFY_DEFAULT should pass