How to import a CA certificate

Debian / Linux

Download the .pem file, then:

sudo cp CA-<domain>-RSA.pem /usr/local/share/ca-certificates/CA-<domain>-RSA.crt
sudo cp CA-<domain>-ECC.pem /usr/local/share/ca-certificates/CA-<domain>-ECC.crt
sudo update-ca-certificates

(update-ca-certificates only picks up files under /usr/local/share/ca-certificates/ ending in .crt - the file must be PEM-encoded even though it uses the .crt extension there.)

To verify it was added:

awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)}{print | cmd}' \
  /etc/ssl/certs/ca-certificates.crt | grep -A0 "<domain>"

Windows

Download the .crt file, then either:

  1. Double-click the downloaded .crt file
  2. Click Install Certificate...
  3. Choose Local Machine (needs admin) or Current User, then Next
  4. Choose Place all certificates in the following store and select Trusted Root Certification Authorities
  5. Finish, and confirm the security warning

Or from an elevated PowerShell prompt:

Import-Certificate -FilePath ".\CA-<domain>-RSA.crt" -CertStoreLocation Cert:\LocalMachine\Root
Import-Certificate -FilePath ".\CA-<domain>-ECC.crt" -CertStoreLocation Cert:\LocalMachine\Root

Chrome / Chromium-based browsers (Chrome, Edge, Brave, ...)

Chrome normally uses the OS certificate store (steps above), so on Windows/macOS the system import is usually enough on its own. On Linux, or if the browser still shows the site as untrusted after importing into the OS store, import the CA directly into Chrome's own certificate settings:

  1. Open chrome://settings/certificates
  2. Go to the Authorities tab
  3. Click Import and select the downloaded .pem (Linux) or .crt (Windows) file - repeat for both the RSA and ECC CA
  4. When prompted, check Trust this certificate for identifying websites
  5. Confirm, then fully restart Chrome (close every window, not just the tab)

Verifying the fingerprint

Before trusting any of these CAs, compare the SHA-256 fingerprint shown on the certificates page against what you compute locally on the downloaded file:

openssl x509 -in CA-<domain>-RSA.pem -noout -sha256 -fingerprint