Created
February 21, 2021 07:46
-
-
Save dorianim/785b9699d40f24b69ed359b2096b85ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
certificateFile="SomeCert.crt" | |
certificateName="Some Name" | |
for certDB in $(find ~/.mozilla* ~/.thunderbird -name "cert9.db") | |
do | |
certDir=$(dirname ${certDB}); | |
#log "mozilla certificate" "install '${certificateName}' in ${certDir}" | |
certutil -A -n "${certificateName}" -t "TCu,Cuw,Tuw" -i ${certificateFile} -d sql:${certDir} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment