summaryrefslogtreecommitdiffstats
path: root/scripts/firefox-certs-remove.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-10 17:14:43 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-14 10:29:40 -0500
commit4817c081e6bccaee14fcd36462c0a26fc1acbf42 (patch)
tree3c98a23ba1c7759cc67fba4066135404da632268 /scripts/firefox-certs-remove.sh
parent76097c23f989794266197be3319ac84e1a06f46d (diff)
downloadpki-dev-4817c081e6bccaee14fcd36462c0a26fc1acbf42.tar.gz
pki-dev-4817c081e6bccaee14fcd36462c0a26fc1acbf42.tar.xz
pki-dev-4817c081e6bccaee14fcd36462c0a26fc1acbf42.zip
Added KRA scripts.
Diffstat (limited to 'scripts/firefox-certs-remove.sh')
-rwxr-xr-xscripts/firefox-certs-remove.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/firefox-certs-remove.sh b/scripts/firefox-certs-remove.sh
index 907e8ed..71a6630 100755
--- a/scripts/firefox-certs-remove.sh
+++ b/scripts/firefox-certs-remove.sh
@@ -1,16 +1,22 @@
#!/bin/sh -x
-. ./ca-include.sh
+user=$1
-FIREFOX_DIR=~/.mozilla/firefox
+if [ "$user" == "" ]; then
+ home=$HOME
+else
+ home=/home/$user
+fi
+
+FIREFOX_DIR=$home/.mozilla/firefox
PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'`
cd $FIREFOX_DIR/$PROFILE
certutil -D -n "admin" -d .
-certutil -D -n "$CA_ADMIN_NAME" -d .
+certutil -D -n "caadmin" -d .
certutil -D -n "kraadmin" -d .
-certutil -D -n "$CA_SUBSYSTEM_NAME - $REALM" -d .
+certutil -D -n "caSigningCert cert-ca-master" -d .
certutil -D -n "$HOSTNAME" -d .
certutil -D -n "$HOSTNAME #2" -d .
certutil -D -n "$HOSTNAME #3" -d .