We install certutil
and pk12util
if necessary:
sudo apt install libnss3-tools
On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb
directory:
ls $HOME/.pki/nssdb
Assuming that your CA file to import is in path/to/ca.crt
, do this to install a CA certificate:
certutil -A \
-n "Name of certificate" \
-t "TC,," \
-d sql:$HOME/.pki/nssdb \
-i path/to/ca.crt
We import the PKCS12 key bundle like this:
pk12util -i path/to/bundle.p12 -d sql:$HOME/.pki/nssdb -W mypassword
Now restart Chromium.
See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_cert_management.md