Describe the bug
Trying to use az connectedk8s cmd which internally uses az aks install-cli --install-location <path_to_kubectl.exe> to install kubectl.exe file. The cmd fails with the below error.
Related command
az aks install-cli --install-location <path_to_kubectl.exe> --debug
Errors
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
Issue script & Debug output
cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1298, in request
File "http\client.py", line 1344, in _send_request
File "http\client.py", line 1293, in endheaders
File "http\client.py", line 1052, in _send_output
File "http\client.py", line 990, in send
File "http\client.py", line 1470, in connect
File "ssl.py", line 517, in wrap_socket
File "ssl.py", line 1104, in _create
File "ssl.py", line 1382, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
Expected behavior
It should be able to download the kubectl file.
Environment Summary
azure-cli 2.63.0 *
core 2.63.0 *
telemetry 1.1.0
Additional context
No response
Describe the bug
Trying to use az connectedk8s cmd which internally uses
az aks install-cli --install-location <path_to_kubectl.exe>to install kubectl.exe file. The cmd fails with the below error.Related command
az aks install-cli --install-location <path_to_kubectl.exe> --debug
Errors
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
Issue script & Debug output
cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1298, in request
File "http\client.py", line 1344, in _send_request
File "http\client.py", line 1293, in endheaders
File "http\client.py", line 1052, in _send_output
File "http\client.py", line 990, in send
File "http\client.py", line 1470, in connect
File "ssl.py", line 517, in wrap_socket
File "ssl.py", line 1104, in _create
File "ssl.py", line 1382, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
Expected behavior
It should be able to download the kubectl file.
Environment Summary
azure-cli 2.63.0 *
core 2.63.0 *
telemetry 1.1.0
Additional context
No response