Created
September 3, 2020 17:41
-
-
Save dlundgren/ea59b35b7d1c04c38612164b0e7151f5 to your computer and use it in GitHub Desktop.
Make Mac OS keychain certs available to Brewed python3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CERT_PATH=$(python3 -m certifi) | |
security find-certificate -a -p /Library/Keychains/System.keychain > ${CERT_PATH} | |
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> ${CERT_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to have
certifi
installed for python3pip3 install certifi
You also need the following in your bashrc or wherever you want to put it