question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure CLI fails with 'certificate verify failed' behind proxy

See original GitHub issue

If I export HTTPS_PROXY=http://localhost:8080 with mitmproxy running, I get this from the CLI:

Please ensure you have network connection. Error detail: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

For the other CLIs, there is an env var that can be exported to disable the strict checking and allow this for debug scenarios. Is that an equivalent for az?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
tjprescottcommented, Dec 14, 2016

@colemickens try setting the following environment variables: ADAL_PYTHON_SSL_NO_VERIFY and AZURE_CLI_DISABLE_CONNECTION_VERIFICATION.

0reactions
jiaslicommented, Aug 6, 2021

Working behind a proxy provides detailed instructions on how to trust a custom root certificate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az login fails with CERTIFICATE_VERIFY_FAILED and I am ...
Certificate verification failed. This typically happens when using Azure CLI behind a proxy that intercepts traffic with a self-signed ...
Read more >
ERROR Azure CLI behind a proxy that intercepts traffic
c:997)'))) Certificate verification failed. This typically happens when using Azure CLI behind a proxy that intercepts traffic with a self- ...
Read more >
SSL handshake error with some Azure CLI commands
Having contacted the azure cli team, it appears there is a bug that affects keyvault commands that are run behind a proxy.
Read more >
Certificate Errors Azure CLI – Colin Beveridge
request failed : Certificate verification failed. This typically happens when using Azure CLI behind a proxy that intercepts traffic with a ...
Read more >
Working with Azure CLI behind SSL intercepting proxy server
This might be due to your ssl intercepting corporate proxy server. The proxy server might be using unsigned certificates or more likely it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found