summaryrefslogtreecommitdiffstats
path: root/scripts/firefox-certs-remove.sh
blob: b8b13675056ed9291f675eed72414b36bc78d27d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

user=$1

if [ "$user" == "" ]; then
    home=$HOME
else
    home=/home/$user
fi

CA_INSTANCE_NAME=pki-tomcat
FIREFOX_DIR=$home/.mozilla/firefox
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 .