diff options
-rwxr-xr-x | scripts/firefox-certs-list.sh | 2 | ||||
-rwxr-xr-x | scripts/firefox-certs-remove.sh | 7 |
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 . |