summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-07-09 11:02:28 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-07-09 11:12:39 -0400
commit81be87ab121d985d6bcf841ae31c8f43e70b6886 (patch)
treea1a1358a4d7f4648ec5c5ffca3650d9d497a1e5b
parent1df01e76904ad1f64c15deafa3ceb564cc674daf (diff)
downloadfreeipa-dev-81be87ab121d985d6bcf841ae31c8f43e70b6886.tar.gz
freeipa-dev-81be87ab121d985d6bcf841ae31c8f43e70b6886.tar.xz
freeipa-dev-81be87ab121d985d6bcf841ae31c8f43e70b6886.zip
Updated Firefox scripts.
-rwxr-xr-xscripts/firefox-certs-list.sh2
-rwxr-xr-xscripts/firefox-certs-remove.sh7
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/firefox-certs-list.sh b/scripts/firefox-certs-list.sh
index 4691a0c..1e9e86f 100755
--- a/scripts/firefox-certs-list.sh
+++ b/scripts/firefox-certs-list.sh
@@ -9,6 +9,6 @@ else
fi
FIREFOX_DIR=$home/.mozilla/firefox
-PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'`
+PROFILE=$HOSTNAME
certutil -L -d $FIREFOX_DIR/$PROFILE
diff --git a/scripts/firefox-certs-remove.sh b/scripts/firefox-certs-remove.sh
index 3f66210..b8b1367 100755
--- a/scripts/firefox-certs-remove.sh
+++ b/scripts/firefox-certs-remove.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/sh
user=$1
@@ -8,12 +8,13 @@ else
home=/home/$user
fi
-CA_INSTANCE_NAME=ca-master
+CA_INSTANCE_NAME=pki-tomcat
FIREFOX_DIR=$home/.mozilla/firefox
-PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'`
+PROFILE=$HOSTNAME
cd $FIREFOX_DIR/$PROFILE
certutil -D -n "$HOSTNAME" -d .
certutil -D -n "$HOSTNAME #2" -d .
certutil -D -n "$HOSTNAME #3" -d .
+certutil -D -n "Certificate Authority" -d .