Skip to content

Commit

Permalink
test: Explicitly set mock-insights purpose to CLIENT_AUTH
Browse files Browse the repository at this point in the history
Otherwise connections to it will silently fail. Hurray!
  • Loading branch information
mvollmer committed Aug 9, 2024
1 parent ae017d4 commit 8f739d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/verify/files/mock-insights
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f739d9

Please sign in to comment.