Identify the certificate you want to remove. With the second command each certificate of the keychain is shown. Sudo security dump-keychain /System/Library/Keychains/SystemRootCertificates.keychain List all keychains / all certificates in your keychain: ls -l /System/Library/Keychains/
I think you imported it into the System-Keychain:įirst make a backup of your System Root Certificates before making any changes (or any other keychain you choose): cd /System/Library/Keychains/ '/Users/JonDoe/Library/Keychains/login.keychain'
There are several keychains on your system: sudo security list-keychains Remove private key from Mac OS X keychain using Terminal