Hi Michael Clagett,
Based on the error details you shared, I have shared troubleshooting steps that I felt will help resolve the issue you reported.
Make sure that the self-signed certificate is recognized not just by Python but also by your WSL system itself. Here's how to install the certificate in WSL:
Copy the .pem
certificate file to the system's trusted certificate directory: sudo cp /path/to/certificate.pem /usr/local/share/ca-certificates/
Update the certificates so that WSL trusts your self-signed certificate: sudo update-ca-certificates
After doing this, try running your Azure CLI command again.
Python Certification store might not yet recognize your self-signed certificate. once check it:
To find where python stores its certificates: python3 -m certifi
Edit the cacert.pem
file by appending the content of your .pem
certificate: sudo nano /path/to/cacert.pem
Copy and paste the certificate content into this file, save it, restart your terminal and re-run the az cloud register
command.
Test the Certificate with OpenSSL: openssl s_client -connect <your-endpoint>:443 -CAfile /path/to/certificate.pem
This will help verify whether the certificate is recognized by your system.
If you still find any difficulties, please let me know I would like to work closer on this issue.
Thank you.