Message256462
Interesting... the posted Python code for 2.x didn't work for me on 2.6.9 on Mac OS X (10.10.5). The code in catch block further generates the below exception:
Traceback (most recent call last):
File "/tmp/t.py", line 17, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file, ssl_version=ssl.PROTOCOL_SSLv23)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 338, in wrap_socket
suppress_ragged_eofs=suppress_ragged_eofs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 120, in __init__
self.do_handshake()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 279, in do_handshake
self._sslobj.do_handshake()
SSLError: [Errno 1] _ssl.c:493: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Is there another workaround that is known to work with this version of Python? |
|
Date |
User |
Action |
Args |
2015-12-15 15:57:44 | haridsv | set | recipients:
+ haridsv, orsenthil, pitrou, Ian.Wetherbee |
2015-12-15 15:57:43 | haridsv | set | messageid: <1450195063.96.0.706139993703.issue11220@psf.upfronthosting.co.za> |
2015-12-15 15:57:43 | haridsv | link | issue11220 messages |
2015-12-15 15:57:43 | haridsv | create | |
|