I wanted to HTTPS decode the communication of the az command and see it in Fiddler, but Python doesn't seem to look in the Windows certificate store, and I couldn't trust Fiddler's root certificate and got a certificate error.
Please ensure you have network connection. Error detail:
HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /common/oauth2/token (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Set Fiddler's Root certificate in the environment variable CURL_CA_BUNDLE
.
$env:CURL_CA_BUNDLE = "C:\Path\To\FiddlerRoot.cer"
The root certificate must be Base64 encoded. Easy to export in Base64 from the certificate store.
After that, set the Fiddler proxy in the environment variable
$env:http_proxy = "http://127.0.0.1:8888"
$env:https_proxy = $env:http_proxy
Now you can take a communication trace with Fiddler.
Recommended Posts