Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
633 stars 242 forks source link

Windows Subsystem Linux AZ CLI DevOps Query SSLError #1418

Open wallyatkins opened 4 months ago

wallyatkins commented 4 months ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az boards query Extension Name: azure-devops. Version: 1.0.1.

Errors:

The Azure DevOps Extension for the Azure CLI does not support Azure DevOps Server.
Error occurred in request., SSLError: HTTPSConnectionPool(host='omitted', port=443): Max retries exceeded with url: /adfs/ls?version=1.0&action=signin&realm=urn%3AAppProxy%3Acom&appRealm=omitted&returnUrl=omitted%2F_apis&client-request-id=omitted (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

To Reproduce:

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

Expected Behavior

return a table of the WIQL results

Environment Summary

Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35, Ubuntu 22.04.4 LTS
Python 3.11.8
Installer: DEB

azure-cli 2.62.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1

Additional Context

wallyatkins commented 4 months ago

Initially cURL was not happy with the SSL cert but after adding the cert to the WSL environment using the openssl s_client to retrieve the certificate, moving the cert to the appropriate locations, and then updating the CA certificates cURL is happy with making the HTTP request.

What is the AZ CLI using to make it's HTTP requests in the WSL environment?