Skip to content
Snippets Groups Projects
Commit 63790f57 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

test_ssl: fix previous fix…

parent b6517b9c
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ for s, d in conf_servers:
try:
# further tests
conn = ssl.create_connection((v, 443))
context = ssl.SSLContext(ssl.PROTOCOL_TLS)
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment