From 712c30cf6f3cb49dd15891355ec6c2b481b297a4 Mon Sep 17 00:00:00 2001 From: reivilibre Date: Fri, 10 Jun 2022 12:19:30 +0100 Subject: [PATCH] Fix test failures by using the latest versions of TLS in the TLS proxy tests. (#306) --- changelog.d/306.misc | 1 + tests/twisted_test_helpers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/306.misc diff --git a/changelog.d/306.misc b/changelog.d/306.misc new file mode 100644 index 00000000..fb375b0f --- /dev/null +++ b/changelog.d/306.misc @@ -0,0 +1 @@ +Fix test failures by using the latest versions of TLS in the TLS proxy tests. \ No newline at end of file diff --git a/tests/twisted_test_helpers.py b/tests/twisted_test_helpers.py index 37f1e0b9..ea2b328c 100644 --- a/tests/twisted_test_helpers.py +++ b/tests/twisted_test_helpers.py @@ -286,7 +286,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)