This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author haridsv
Recipients Ian.Wetherbee, haridsv, orsenthil, pitrou
Date 2015-12-15.15:57:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450195063.96.0.706139993703.issue11220@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-12-15 15:57:44haridsvsetrecipients: + haridsv, orsenthil, pitrou, Ian.Wetherbee
2015-12-15 15:57:43haridsvsetmessageid: <1450195063.96.0.706139993703.issue11220@psf.upfronthosting.co.za>
2015-12-15 15:57:43haridsvlinkissue11220 messages
2015-12-15 15:57:43haridsvcreate