4 ms·
Tested on RHEL 7 (actual RHEL, not CentOS), got TLS 1.2 for both: $ python2 --version Python 2.7.5 $ python2 -c "import json, urllib2; print json.l
by amyjess 10y ago
Tested on RHEL 7 (actual RHEL, not CentOS), got TLS 1.2 for both:
$ python2 --version
Python 2.7.5
$ python2 -c "import json, urllib2; print json.load(urllib2.urlopen('https://www.howsmyssl.com/a/check'))['tls_version']"
TLS 1.2
$ python3 --version
Python 3.4.5
$ python3 -c "import json, urllib.request; print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read().decode('UTF-8'))['tls_version'])"
TLS 1.2