Created
May 23, 2013 00:17
-
-
Save 8bitDesigner/5631925 to your computer and use it in GitHub Desktop.
When your homebrew certfiles get all effed
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
cert_file="$( openssl version -d | awk -F'"' '{print $2}' )/cert.pem" | |
mkdir -p "${cert_file%/*}" | |
security find-certificate -a -p /Library/Keychains/System.keychain > "$cert_file" | |
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> "$cert_file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment