Created
September 3, 2013 17:45
-
-
Save danielkec/6427152 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# 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