Coder Perfect

Installing biceps with azure cli, getting SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed: unable to get local issuer certificate _ssl.c:1125

Problem

The following error is being displayed:

az command data logger: HTTPSConnectionPool(host=’api.github.com’, port=443): HTTPSConnectionPool(host=’api.github.com’, port=443): HTTPSConnectionPool(host=’api.github.com’, port=443): HTTPSConnectionPool(host=’api.github.com’, port= With the url: /repos/Azure/bicep/releases/latest, the maximum number of retries has been reached. (SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE VERIFY FAILED] certificate verify failed: unable to retrieve local issuer certificate (_ssl.c:1125)’)) is to blame.

I tried the following methods. But it didn’t work: 1)I created REQUESTS CA BUNDLE and pointed to a.pem file that I downloaded from api.github.com [.crt].

2)https://github.com/Azure/bicep/issues/3147

3)https://github.com/Azure/azure-cli/issues/19420.

I’m using Azure CLI 2.31.0, which is the most recent version.

Asked by Reshma

Solution #1

Here are a couple fixes for the above issue, as provided by @TrevorBrooks. If you’re using Corporate proxy, here’s what you’ll need to know:

To set up Azure cli using a co-operate proxy, follow these steps:

For example :

set HTTPS_PROXY=http://proxy.name:8080

NOTE: After adding the environment variable, the Terminal must be rebooted.

Please see this blog for further information.

Answered by AjayKumarGhose-MT

Post is based on https://stackoverflow.com/questions/70301778/installing-biceps-with-azure-cli-getting-ssl-certificate-verify-failed-certifi