enable cert validation in test

This commit is contained in:
Benjamin Peterson 2015-01-07 22:12:43 -06:00
parent 23ef9fac16
commit 15042921ad
1 changed files with 4 additions and 1 deletions

View File

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