diff options
Diffstat (limited to 'scripts/firefox-certs-remove.sh')
-rwxr-xr-x | scripts/firefox-certs-remove.sh | 14 |
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 . |