From: Benjamin Peterson Date: Thu, 8 Jan 2015 04:12:43 +0000 (-0600) Subject: enable cert validation in test X-Git-Tag: v3.5.0a1~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15042921adf08c787bf856be02e07246e125550d;p=python enable cert validation in test --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 3f1ba2fa0f..b7504c63f0 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -3164,7 +3164,10 @@ else: def test_shared_ciphers(self): server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) - client_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) + server_context.load_cert_chain(SIGNED_CERTFILE) + client_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) + client_context.verify_mode = ssl.CERT_REQUIRED + client_context.load_verify_locations(SIGNING_CA) client_context.set_ciphers("RC4") server_context.set_ciphers("AES:RC4") stats = server_params_test(client_context, server_context)