Piyush Verma <114piy...@gmail.com> writes: > Getting SSL error while connecting from httplib.HTTPSConnection. > > Any help would be appreciated. > ... > line 579, in __init__ > self.do_handshake() > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", > line 808, in do_handshake > self._sslobj.do_handshake() > ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)
Are you sure, you try to connect to an HTTPS port? The error message tells you that the "ssl" handshake failed because the protocol was unknown (likely because the message was not understood). The most natural reason is to try to connect to something which is not prepared for an "ssl" handshake. -- https://mail.python.org/mailman/listinfo/python-list