Remove Root Certificates from System Keychain

mapurcel
Contributor III

We put our root certificates in the System keychain but now have a duplicate set of certs (one set is expired). Does anyone know of a way to remove certificates from the System keychain in an automated way?

thanks in advance for any suggestions

1 ACCEPTED SOLUTION

hkabik
Valued Contributor

sudo security delete-certificate -Z certificate-hash-here /Library/Keychains/System.keychain

View solution in original post

2 REPLIES 2

hkabik
Valued Contributor

sudo security delete-certificate -Z certificate-hash-here /Library/Keychains/System.keychain

mapurcel
Contributor III

Thanks!