Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benjaminblack/1d0127206fad4fa6064209aeff641536 to your computer and use it in GitHub Desktop.
Save benjaminblack/1d0127206fad4fa6064209aeff641536 to your computer and use it in GitHub Desktop.
Trusting a self-signed certificate in Chrome on Linux

Add a self-signed certificate:

certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n <certificate nickname> \
-i <certificate filename>

E.g.,

certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n "bb.localhost" \
-i /usr/local/share/ca-certificates/wildcard.bb.localhost.crt

List certificates:

certutil -d sql:$HOME/.pki/nssdb -L

View certificates in Chrome: chrome://settings/?search=manage+certificates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment