Yes Dieter, I see that it is connecting with 443 port number and service is running. Is this related to python version or mac?
Regards, ~Piyush Facebook <https://www.facebook.com/piyushkv1> Twitter <https://twitter.com/SocializePiyush> On Sat, Dec 16, 2017 at 1:59 PM, dieter <die...@handshake.de> wrote: > 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 > -- https://mail.python.org/mailman/listinfo/python-list