Custom SSL Certificates
When using the quilt3
API or CLI with a client-to-site VPN you may need to trust a custom certificate in Python.
Mac OS X
Direct your browser to an HTTPS website that uses a custom certificate.
Click the lock icon in the address bar.
Click View certificates and copy the certificate name to a safe place.
Open Keychain Access and select System Keychains > System Roots.
Click the Certificates tab.
Find the certificate that you noted above.
Click File > Export Items... to export the root certificate.
Convert the exported certificate in Terminal as follows:
Export the following variable. You may wish to do this in a startup file for repeatability.
Linux
Export the following variable. You may wish to do this in a startup file for repeatability.
The single-file version of your CA certificate may be found in different locations depending upon your operating system.
Windows
Direct your browser to an HTTPS website that uses a custom certificate.
Click the lock icon in the address bar.
Click View certificates and copy the certificate name to a safe place.
Open the Command Prompt («Win + R») and type
certmgr
to open your Windows Certificate Manager.Find the certificate that you noted above.
Export the certificate in Base-64 encoded X.509 (.CER) to your file system (
\Path\To\mycert.cer
).Convert the exported certificate in the Command Prompt as follows (assumes OpenSSL is installed):
Certificate in
der
encoding:
Certificate in
pem
encoding (no conversion necessary):
Export the following variable. You may wish to do this in a startup file for repeatability.
Verification
quilt3
should no longer fail with SSL errors related to the custom certificate.
References
Last updated