Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate Verify Failed for az login command on mac #23820

Closed
vyshnavi-gadiparthi opened this issue Sep 8, 2022 · 5 comments
Closed

Certificate Verify Failed for az login command on mac #23820

vyshnavi-gadiparthi opened this issue Sep 8, 2022 · 5 comments
Assignees
Labels
Account az login/account Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization.
Milestone

Comments

@vyshnavi-gadiparthi
Copy link

Getting the below error after setting REQUESTS_CA_BUNDLE=cacert.pem file path:
HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/oauth2/v2.0/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
Certificate verification failed. This typically happens when using Azure CLI behind a proxy that intercepts traffic with a self-signed certificate. Please add this certificate to the trusted CA bundle. More info: https://docs.microsoft.com/cli/azure/use-cli-effectively#work-behind-a-proxy.

Complete details of my error :
Command Name
az login

Errors:

HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/oauth2/v2.0/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az login --debug

Expected Behavior

Environment Summary

macOS-11.6-x86_64-i386-64bit, Darwin 20.6.0
Python 3.10.6
Installer: HOMEBREW

azure-cli 2.40.0

Could someone please help me to resolve this issue

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Sep 8, 2022
@ghost ghost assigned jiasli Sep 8, 2022
@ghost ghost added this to the Backlog milestone Sep 8, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 8, 2022

Please go through this issue and see if it helps
#21514

@yonzhan yonzhan closed this as completed Sep 8, 2022
@vyshnavi-gadiparthi
Copy link
Author

vyshnavi-gadiparthi commented Sep 9, 2022

Hi @yonzhan ,

I tried #21514 that doesnot help, I see nothing wrong from the network side in my system.

@vyshnavi-gadiparthi
Copy link
Author

Hi @yonzhan,

Could you please help me to resolve this issue. I tried multiple versions as well but still nothing works. I am blocked with this error.

1 similar comment
@vyshnavi-gadiparthi
Copy link
Author

Hi @yonzhan,

Could you please help me to resolve this issue. I tried multiple versions as well but still nothing works. I am blocked with this error.

@bebound
Copy link
Contributor

bebound commented Sep 16, 2022

Duplicate of #19571

@vyshnavi-gadiparthi This error is caused by your certificate, there is nothing we can do about it. Disabling proxy/VPN or trusting CA should help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

4 participants