Message10796
Current lib-python/2.7/urllib2.py is out-dated. As a result, I can't disable SSL certificate verification in pure Python:
import ssl
import urllib2
context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
req = urllib2.urlopen('https://wrong.host.badssl.com/', context=context)
print(req.read())
Please update it. |
|
Date |
User |
Action |
Args |
2016-03-03 15:46:09 | yan12125 | set | recipients:
+ yan12125 |
2016-03-03 15:46:09 | yan12125 | set | messageid: <1457019969.61.0.755864006632.issue2481@psf.upfronthosting.co.za> |
2016-03-03 15:46:09 | yan12125 | link | issue2481 messages |
2016-03-03 15:46:08 | yan12125 | create | |
|