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

SSL Error

Open sorvis opened this issue 5 years ago • 2 comments

Describe the bug

I've been hitting this SSL error. After googling around and doing some reading I have tried:

  • Disconnecting from my companies VPN
  • Setting environment varibles ** AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1 ** set all_proxy= ** set HTTPS_PROXY ** set HTTP_PROXY
  • "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import requests; print(requests.get('https://login.microsoftonline.com/').status_code)" which returns 200 so it at least connects....

Command Name az artifacts universal publish Extension Name: azure-devops. Version: 0.13.0.

Errors:

HTTPSConnectionPool(host='004vsblobprodeus2116.vsblob.vsassets.io', port=443): Max retries exceeded with url: /artifacttool/artifacttool-win10-x64-Release_0.2.172.zip?sv=2019-02-02&sr=b&sig=fO6Zsz64fzrc1yRig2B%2F7hKrVvRN6ZdsvxowFicenHc%3D&spr=https&se=2020-08-31T18%3A01%3A04Z&sp=r&P1=1598896564&P2=11&P3=2&P4=RLUIBRtY13i0cK%2ffhQRWN3ALtITGbNIytBozWe1q1OY%3d (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Traceback (most recent call last):
urllib3\urllib3\contrib\pyopenssl.py, ln 456, in wrap_socket
pip-install-9101vebg\pyOpenSSL\OpenSSL\SSL.py, ln 1934, in do_handshake
...

Environment Summary

Windows-10-10.0.14393-SP0
Python 3.6.6

azure-cli 2.2.0

Extensions:
azure-devops 0.13.0

Additional Context

sorvis avatar Aug 31 '20 17:08 sorvis

Check this other issue. It should resolve your problem. https://github.com/Azure/azure-devops-cli-extension/issues/963

tgiorgio avatar Nov 17 '20 10:11 tgiorgio

I had the same problem.

Does your outbound communication works with the browser? If yes it means you have the proper certificates installed in Windows. Therefore you can you python-certifi-win32 package to enable magically to use the windows certificate in your python programs.

To do so I installed Python 3.8.2 independently and installed the azure-cli package there with pip because I didn't find a way to add it to the default Python SDK installation.

zioalex avatar May 05 '21 14:05 zioalex