summaryrefslogtreecommitdiffstats
path: root/scripts/certs-import.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/certs-import.sh')
-rwxr-xr-xscripts/certs-import.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/certs-import.sh b/scripts/certs-import.sh
new file mode 100755
index 0000000..86ab35d
--- /dev/null
+++ b/scripts/certs-import.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -x
+
+PKI_DEV_SRC=`cd .. ; pwd`
+FIREFOX_DIR=~/.mozilla/firefox
+PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'`
+
+pk12util -i $PKI_DEV_SRC/certs/ca/ca-client-certs.p12 -d $FIREFOX_DIR/$PROFILE -W Secret123
+certutil -M -n caadmin -t u,u,u -d $FIREFOX_DIR/$PROFILE
+
+pk12util -i $PKI_DEV_SRC/certs/kra/kra-client-certs.p12 -d $FIREFOX_DIR/$PROFILE -W Secret123
+certutil -M -n kraadmin -t u,u,u -d $FIREFOX_DIR/$PROFILE