X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/SecurityTests/clxutils/sslScripts/removeLocalCerts?ds=inline diff --git a/SecurityTests/clxutils/sslScripts/removeLocalCerts b/SecurityTests/clxutils/sslScripts/removeLocalCerts new file mode 100755 index 00000000..8d5792a0 --- /dev/null +++ b/SecurityTests/clxutils/sslScripts/removeLocalCerts @@ -0,0 +1,24 @@ +#! /bin/csh -f +# +# Remove localcert, clientcert, and dsacert keychains. +# + +source sslKcSetup +echo Removing local keychains.... + +set SECURITY=/usr/bin/security +set cmd="$SECURITY delete-keychain $LOCAL_KC" +echo $cmd +$cmd +# ignore errors, keep going +set cmd="$SECURITY delete-keychain $CLIENT_KC" +echo $cmd +$cmd + +set cmd="$SECURITY delete-keychain $DSA_KC" +echo $cmd +$cmd + +set cmd="$SECURITY delete-keychain $P12_KC" +echo $cmd +$cmd