Adding a certificate to the system store

From WilliamsNet Wiki
Jump to navigation Jump to search

Debian[edit]

Fortunately it is straightforward, since you can tell Ubuntu/Debian to update its root certificate list to include any certificates stored in the /usr/local/share/ca-certificates directory.

  1. Upload the certificate to /usr/local/share/ca-certificates
    • anything with a .crt extension is automatically trusted
    • if desired, you can create subdirectories to organize certificates
  2. Update the certificate bundle
    sudo update-ca-certificates

CentOS[edit]

The process is similar, but (of course) with different locations and commands ...

  1. Upload certificates to /etc/pki/ca-trust/source/anchors
  2. Update the certificate bundle
    sudo update-ca-trust