Hari Krishna Dara added the comment:
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?
----------
nosy: +haridsv
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11220>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com