When I run this per email from my work laptop, python3 -c "import urllib.request,json; print(json.loads(urllib.request.urlopen(' https://www.howsmyssl.com/a/check').read())['tls_version'])"
I get the following traceback: C:\...>python -c "import urllib.request,json; print(json.loads(urllib.request.url w.howsmyssl.com/a/check').read())['tls_version'])" Traceback (most recent call last): File "c:\Python35\lib\urllib\request.py", line 1254, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "c:\Python35\lib\http\client.py", line 1106, in request self._send_request(method, url, body, headers) File "c:\Python35\lib\http\client.py", line 1151, in _send_request self.endheaders(body) File "c:\Python35\lib\http\client.py", line 1102, in endheaders self._send_output(message_body) File "c:\Python35\lib\http\client.py", line 934, in _send_output self.send(msg) File "c:\Python35\lib\http\client.py", line 877, in send self.connect() File "c:\Python35\lib\http\client.py", line 1260, in connect server_hostname=server_hostname) File "c:\Python35\lib\ssl.py", line 377, in wrap_socket _context=self) File "c:\Python35\lib\ssl.py", line 752, in __init__ self.do_handshake() File "c:\Python35\lib\ssl.py", line 988, in do_handshake self._sslobj.do_handshake() File "c:\Python35\lib\ssl.py", line 633, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\Python35\lib\urllib\request.py", line 163, in urlopen return opener.open(url, data, timeout) File "c:\Python35\lib\urllib\request.py", line 466, in open response = self._open(req, data) File "c:\Python35\lib\urllib\request.py", line 484, in _open '_open', req) File "c:\Python35\lib\urllib\request.py", line 444, in _call_chain result = func(*args) File "c:\Python35\lib\urllib\request.py", line 1297, in https_open context=self._context, check_hostname=self._check_hostname) File "c:\Python35\lib\urllib\request.py", line 1256, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)> Anyone know how to deal with that? When using pip, I get same error, unless I add "--trusted-host pypi.python.org": C:\...>pip install nose Collecting nose Could not fetch URL https://pypi.python.org/simple/nose/: There was a problem confirming the ssl certificate: [SSL: CERTIF LED] certificate verify failed (_ssl.c:645) - skipping Could not find a version that satisfies the requirement nose (from versions: ) No matching distribution found for nose C:\...>pip install nose --trusted-host pypi.python.org Collecting nose Downloading nose-1.3.7-py3-none-any.whl (154kB) 100% |################################| 163kB 386kB/s Installing collected packages: nose Successfully installed nose-1.3.7 -- Oliver -- Oliver My StackOverflow contributions My CodeProject articles My Github projects My SourceForget.net projects -- https://mail.python.org/mailman/listinfo/python-list