azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

Windows Subsystem Linux AZ CLI DevOps Query SSLError

Open wallyatkins opened this issue 1 year ago • 1 comments

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.

  • Put any pre-requisite steps here...
  • az boards query --output table --wiql "select [id], [Work Item Type], [Title] from workitems

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 avatar Jul 22 '24 19:07 wallyatkins

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?

wallyatkins avatar Jul 22 '24 19:07 wallyatkins