Files
twnhi-smartcard-agent/certs/trust_ca_ubuntu_firefox.sh
2020-05-20 00:12:35 +08:00

15 lines
351 B
Bash
Executable File

#!/bin/bash
if [ ! -x "$(which certutil 2>&-)" ]
then
echo "[-] Install libnss3-tools first"
fi
for f in ~/.mozilla/firefox/*.default*/cert9.db
do
echo --------------------------------------------------------------------------------
echo $f
certutil -d "${f%/*}" -A -i ca.crt -n 'Inndys NHI Smartcard Client' -t C
certutil -d "${f%/*}" -L
done