Message12205
I am creating thread based https server with few disabled protocols(I am disabling TLSv1.1) in ssl context.
There are two issues which i am facing .
When using jython-standalone-2.7.1.jar, TLS handshake just hangs forever.
I used same code with jython-standalone-2.7.1b3.jar which gives different error.
wrap_scoket_exception: 'module' object has no attribute 'OP_NO_TLSv1_1'
Below is sample code
class ThreadedHTTPServer(ThreadingMixIn, BaseHTTPServer.HTTPServer):
def __init__(self, server_address, RequestHandlerClass, bind_and_activate=True):
BaseHTTPServer.HTTPServer.__init__(self, server_address, RequestHandlerClass, bind_and_activate)
def wrap_thread_socket(self, cert):
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.options |= ssl.OP_NO_TLSv1_1
context.load_cert_chain(cert)
self.socket = context.wrap_socket(self.socket, server_side=False)
httpd = ThreadedHTTPServer(("", getTLSPort()), Handler)
httpd.wrap_thread_socket(tlsCertificate)
This totally works with python version 2.7 and code runs smooth.
Please help. |
|
Date |
User |
Action |
Args |
2018-12-14 07:09:13 | arao | set | recipients:
+ arao |
2018-12-14 07:09:13 | arao | set | messageid: <1544771353.41.0.788709270274.issue2720@psf.upfronthosting.co.za> |
2018-12-14 07:09:13 | arao | link | issue2720 messages |
2018-12-14 07:09:12 | arao | create | |
|