[Tutor] SSL Error

Alan Gauld alan.gauld at yahoo.co.uk
Tue Jul 31 13:03:49 EDT 2018

On 31/07/18 03:52, Saket Mehrotra wrote:

> error  ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD,
> AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23'

Are you sure you spelled the attribute correctly?

Have you tried

>>> import ssl
>>> dir(ssl)

Top see what the attribute names look like?
Is PROTOCOL_SSLv23 one of them?

Alan G
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:

More information about the Tutor mailing list