]> git.saurik.com Git - apple/security.git/blobdiff - SecurityTests/clxutils/sslScripts/removeLocalCerts
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / sslScripts / removeLocalCerts
diff --git a/SecurityTests/clxutils/sslScripts/removeLocalCerts b/SecurityTests/clxutils/sslScripts/removeLocalCerts
new file mode 100755 (executable)
index 0000000..8d5792a
--- /dev/null
@@ -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