Skip to content

Instantly share code, notes, and snippets.



Last active Apr 1, 2017
What would you like to do?
security find-certificate -c "" -a -Z "/System/Library/Keychains/SystemRootCertificates.keychain"| grep SHA-1 | awk '{print $NF}'
sudo security delete-certificate -Z 30779E9315022E94856A3FF8BCF815B082F9AEFD -t "/System/Library/Keychains/SystemRootCertificates.keychain"
security find-certificate -c "certificatename" -a -Z | \
sudo awk '/SHA-1/{system("security delete-certificate -Z "$NF)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment