We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2a13e commit 5892cdfCopy full SHA for 5892cdf
java/ql/integration-tests/java/buildless-inherit-trust-store/server.py
@@ -4,7 +4,8 @@
4
5
httpd = HTTPServer(('localhost', 4443), SimpleHTTPRequestHandler)
6
7
-sslctx = ssl.SSLContext()
+sslctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
8
+sslctx.options |= ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1
9
sslctx.load_cert_chain(certfile="../cert.pem", keyfile="../key.pem")
10
11
httpd.socket = sslctx.wrap_socket (httpd.socket, server_side=True)
0 commit comments