From 8f739d9768c66600333c0843a4b920428c0062a0 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Fri, 9 Aug 2024 18:16:05 +0300 Subject: [PATCH] test: Explicitly set mock-insights purpose to CLIENT_AUTH Otherwise connections to it will silently fail. Hurray! --- test/verify/files/mock-insights | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/verify/files/mock-insights b/test/verify/files/mock-insights index ce7dedfa2056..0112a9f537b1 100755 --- a/test/verify/files/mock-insights +++ b/test/verify/files/mock-insights @@ -210,7 +210,7 @@ def insights_server(port): subprocess.check_call(["sscg"], cwd=certdir) httpd = HTTPServer(('', port), handler) - ctx = ssl.create_default_context() + ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ctx.check_hostname = False ctx.verify_mode = ssl.CERT_OPTIONAL # with newer Pythons this is ctx.minimum_version = ssl.TLSVersion.TLSv1_2