Hello -
Im trying to get TLS 1.2 working in a script by setting the SSLContext to PROTOCOL_TLSv1_2 -
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
resp = urllib2.urlopen(req, context=ctx)
And I keep getting the following error:
'module' object has no attribute SSLContext
If I go to the console and print ssl.OPENSSL_VERSION, it returns OpenSSL 1.0.1g (so I thought TLS1.2 is supported)...
Any thoughts how how to get TLS1.2 in Python 2.7 working?