如何通过终端强制删除或钥匙串在Mac OSX环境中访问过期的证书?
我已按照说明使用这些命令:
$sudo /usr/bin/security find-certificate -a -Z -c "Ricardo" |grep SHA-1
SHA-1哈希:E255796FF19E4BB84C576BF9DF7CDD6D85E5E3E3 SHA-1哈希:EA874FE7A139F7209BE90DDEF52988C5CE046097 SHA-1哈希:17115A26F95F98B70493015F1BCAFB23AAB051CB
$ sudo security delete-certificate -Z 17115A26F95F98B70493015F1BCAFB23AAB051CB /System/Library/Keychains/SystemRootCertificates.keychain
无法删除证书匹配“17115A26F95F98B70493015F1BCAFB23AAB051CB”l-0268:~ricardo $
尝试使用-c:
$sudo security delete-certificate -c -f "Ricardo"/System/Library/Keychains/SystemRootCertificates.keychain
无法删除证书匹配 “17115A26F95F98B70493015F1BCAFB23AAB051CB”
谢谢。