ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

dieter dieter at handshake.de
Sun Dec 17 15:59:58 EST 2017


Piyush Verma <114piyush at gmail.com> writes:

> Yes Dieter, I see that it is connecting with 443 port number and service is
> running. Is this related to python version or mac?

It might be.

Python does not perform the SSL handling itself but delegates it to
an external SSL library ("OpenSSL" on a *nix like platform).
SSL can use different protocols, e.g. for the encryption.
The error message might mean that the server side uses a protocol
which is not supported by the client side. In this case, you would need
to use a more up-to-date SSL library.


I have had no problems to acces "https://www.facebook.com/piyushkv1"
with "urllib2.urlopen" of Python 2.7.12 (on Ubuntu 16.4).




More information about the Python-list mailing list