Skip to content

Instantly share code, notes, and snippets.

@dorianim
Created February 21, 2021 07:46
Show Gist options
  • Save dorianim/785b9699d40f24b69ed359b2096b85ee to your computer and use it in GitHub Desktop.
Save dorianim/785b9699d40f24b69ed359b2096b85ee to your computer and use it in GitHub Desktop.
#!/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