diff --git a/tests/test_ssl.py b/tests/test_ssl.py index 4da15ddb882d68f858f87fb6d30c68abb80f0b6b..9d46bd6e3a7795aa2f087c9a1374dd966fa28f1a 100755 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -50,7 +50,7 @@ for s, d in conf_servers: try: # further tests conn = ssl.create_connection((v, 443)) - context = ssl.SSLContext() + context = ssl.SSLContext(ssl.PROTOCOL_TLS) sock = context.wrap_socket(conn, server_hostname=v) cert = ssl.DER_cert_to_PEM_cert(sock.getpeercert(True)) x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, cert)