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

[Issue]When azd auth login, x509 error occured in WSL(ERROR: logging in: failed to authenticate: server response error: Get "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration": tls: failed to verify certificate: x509: certificate signed by unknown authority) #3882

Open
1 task done
RyosukeDTomita opened this issue May 9, 2024 · 2 comments
Labels
authn core customer-reported identify a customer issue needs-author-feedback waiting for author to respond no-recent-activity identity issues with no activity question
Milestone

Comments

@RyosukeDTomita
Copy link

Output from azd version
Run azd version and copy and paste the output here:

azd version
azd version 1.9.0 (commit 651394c3ddcfadff194d177f8b0ddf06fe3752bf)

Describe the bug
When I tried azd auth login, x509 error occured.
This error is occurring in WSL, not Windows Powershell.

azd auth login

ERROR: logging in: failed to authenticate: server response error:
 Get "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration": tls: failed to verify certificate: x509: certificate signed by unknown authority

To Reproduce

Expected behavior

Environment
Information on your environment:

  • OS: Windows 11
  • WSL: 2.1.5.0
  • Ubuntu(22.04.3 LTS (Jammy Jellyfish))→use azd auth login
  • azd: 1.9.0

Additional context
Add any other context about the problem here.

@ellismg
Copy link
Member

ellismg commented May 14, 2024

The error here makes it sound like the TLS handshake failed because we didn't trust the CA of the presented certificate. Is the ca-certificates package installed in WSL for you?

I wonder if curl -v https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration works and shows a successful validation of the certificate.

@rajeshkamal5050 rajeshkamal5050 added needs-author-feedback waiting for author to respond core authn labels May 15, 2024
@rajeshkamal5050 rajeshkamal5050 added this to the Backlog milestone May 15, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the no-recent-activity identity issues with no activity label May 24, 2024
Copy link
Contributor

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authn core customer-reported identify a customer issue needs-author-feedback waiting for author to respond no-recent-activity identity issues with no activity question
Projects
None yet
Development

No branches or pull requests

3 participants