az aks install-cli "certificate verify failed"
See original GitHub issueNot sure if this is the right place for this but I’m trying to install the Kubernetes cli tools in the Azure portal cloud-cli and am getting a certificate verify failed error
`PS Azure:> az aks install-cli <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)> Traceback (most recent call last): File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 1318, in do_open encode_chunked=req.has_header(‘Transfer-encoding’)) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\http\client.py”, line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\http\client.py”, line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\http\client.py”, line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\http\client.py”, line 1026, in _send_output self.send(msg) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\http\client.py”, line 964, in send self.connect() File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\http\client.py”, line 1400, in connect server_hostname=server_hostname) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\ssl.py”, line 401, in wrap_socket _context=self, _session=session) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\ssl.py”, line 808, in init self.do_handshake() File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\ssl.py”, line 1061, in do_handshake self._sslobj.do_handshake() File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\ssl.py”, line 683, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\main.py”, line 36, in main cmd_result = APPLICATION.execute(args) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\application.py”, line 216, in execute result = expanded_arg.func(params) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\commands_init_.py”, line 381, in call return self.handler(*args, **kwargs) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\commands_init_.py”, line 630, in execute_command reraise(*sys.exc_info()) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\six.py”, line 693, in reraise raise value File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\commands_init.py", line 612, in _execute_command result = op(client, **kwargs) if client else op(**kwargs) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs\custom.py”, line 286, in k8s_install_cli context=context).read() File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 223, in urlopen return opener.open(url, data, timeout) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 526, in open response = self._open(req, data) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 544, in _open ‘_open’, req) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 504, in _call_chain result = func(*args) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 1361, in https_open context=self._context, check_hostname=self._check_hostname) File “C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\urllib\request.py”, line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)> Azure:`
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
Facing the same issue on Mac when running az aks install-cli, using v2.0.38
https://stackoverflow.com/questions/41691327/ssl-sslerror-ssl-certificate-verify-failed-certificate-verify-failed-ssl-c