Skip to content

Instantly share code, notes, and snippets.

@sAws
Last active November 27, 2019 07:09
Show Gist options
  • Save sAws/f792d05f775a819ee77d09484f8e3ec6 to your computer and use it in GitHub Desktop.
Save sAws/f792d05f775a819ee77d09484f8e3ec6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
certificateFile="${HOME}/Downloads/staging-multihost.crt"
certificateName="*.ati.doc_autoimport"
for certDB in $(find ~/.mozilla* -name "cert*.db")
do
certDir=$(dirname ${certDB});
#log "mozilla certificate" "install '${certificateName}' in ${certDir}"
certutil -A -n "${certificateName}" -t "TCu,Cuw,Tuw" -i ${certificateFile} -d ${certDir}
echo "${certDB}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment