Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Use TLSv1.2 for fake servers in tests #8208

Merged
merged 3 commits into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/8208.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix tests on distros which disable TLSv1.0.
richvdh marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion tests/http/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __init__(self, sanlist):
self._cert_file = create_test_cert_file(sanlist)

def serverConnectionForTLS(self, tlsProtocol):
ctx = SSL.Context(SSL.TLSv1_METHOD)
ctx = SSL.Context(SSL.SSLv23_METHOD)
ctx.use_certificate_file(self._cert_file)
ctx.use_privatekey_file(get_test_key_file())
return Connection(ctx, None)