Skip to content

Instantly share code, notes, and snippets.

@echohack
Last active April 1, 2017 00:02
Show Gist options
  • Save echohack/7776300eec4186045455 to your computer and use it in GitHub Desktop.
Save echohack/7776300eec4186045455 to your computer and use it in GitHub Desktop.
security find-certificate -c "Izenpe.com" -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