From 81be87ab121d985d6bcf841ae31c8f43e70b6886 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 9 Jul 2014 11:02:28 -0400 Subject: Updated Firefox scripts. --- scripts/firefox-certs-list.sh | 2 +- scripts/firefox-certs-remove.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts') 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 . -- cgit