Skip to content

Instantly share code, notes, and snippets.

@8bitDesigner
Created May 23, 2013 00:17
Show Gist options
  • Save 8bitDesigner/5631925 to your computer and use it in GitHub Desktop.
Save 8bitDesigner/5631925 to your computer and use it in GitHub Desktop.
When your homebrew certfiles get all effed
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