Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created September 3, 2013 17:45
Show Gist options
  • Save danielkec/6427152 to your computer and use it in GitHub Desktop.
Save danielkec/6427152 to your computer and use it in GitHub Desktop.
#!/bin/bash
# sudo apt-get install libnss3-tools
# To trust a root CA certificate for issuing SSL server certificates, use
certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n isdn.syntea.cz -i isdn.syntea.cz.pem
# To import an intermediate CA certificate, use
certutil -d sql:$HOME/.pki/nssdb -A -t ",," -n isdn.syntea.cz -i isdn.syntea.cz.pem
# To trust a self-signed server certificate, we should use
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n isdn.syntea.cz -i isdn.syntea.cz.pem
# List all added certificates
certutil -d sql:$HOME/.pki/nssdb -L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment