ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

dieter dieter at handshake.de
Sat Dec 16 03:29:50 EST 2017


Piyush Verma <114piyush at 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.




More information about the Python-list mailing list