Skip to content

Instantly share code, notes, and snippets.

@ba0f3
Created September 5, 2025 16:10
Show Gist options
  • Save ba0f3/277a74ff32567336d8a14b8e1bceb41a to your computer and use it in GitHub Desktop.
Save ba0f3/277a74ff32567336d8a14b8e1bceb41a to your computer and use it in GitHub Desktop.
add custom CA to browser for Linux
#install package, required for certutil
apt install -y libnss3-tools
# For Chromium, Firefox
certutil -L -d dbm:$HOME/.pki/nssdb
certutil -A -n "CA NAME" -t "TC,C,T" -i /path/to/ca.crt -d sql:$HOME/.pki/nssdb
# For Vivaldi
certutil -A -n "CA NAME" -t "TC,C,T" -i /path/to/ca.crt -d sql:$HOME/.config/vivaldi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment