summaryrefslogtreecommitdiffstats
path: root/scripts/certs-remove.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-13 00:49:41 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-13 11:05:37 -0500
commitcd1ab0aaa0f2882fb67bd30e7955a77e5116ae2b (patch)
tree79fe686e9ac94583acc248450d63daa1ba0f3020 /scripts/certs-remove.sh
parent61ba4653098c9b37ba4679421cfb1a7856bd5669 (diff)
downloadpki-dev-cd1ab0aaa0f2882fb67bd30e7955a77e5116ae2b.tar.gz
pki-dev-cd1ab0aaa0f2882fb67bd30e7955a77e5116ae2b.tar.xz
pki-dev-cd1ab0aaa0f2882fb67bd30e7955a77e5116ae2b.zip
Added CA include script.
Diffstat (limited to 'scripts/certs-remove.sh')
-rwxr-xr-xscripts/certs-remove.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/certs-remove.sh b/scripts/certs-remove.sh
index 90d847d..97439e1 100755
--- a/scripts/certs-remove.sh
+++ b/scripts/certs-remove.sh
@@ -1,13 +1,15 @@
#!/bin/sh -x
+. ./ca-include.sh
+
FIREFOX_DIR=~/.mozilla/firefox
PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'`
cd $FIREFOX_DIR/$PROFILE
-certutil -D -n "caadmin" -d .
+certutil -D -n "$CA_ADMIN_NAME" -d .
certutil -D -n "kraadmin" -d .
-certutil -D -n "Certificate Authority - EXAMPLE-COM" -d .
+certutil -D -n "$CA_SUBSYSTEM_NAME - $REALM" -d .
certutil -D -n "$HOSTNAME" -d .
certutil -D -n "$HOSTNAME #2" -d .
certutil -D -n "$HOSTNAME #3" -d .