Trusting Your Root CA (Linux)
Contents
Debian Systems
This should work for most Debian-based systems, such as Debian, Ubuntu, Mint, PopOS etc.
-
Ensure you have downloaded your Root CA.
-
Open a terminal and run::
sudo apt update sudo apt install -y ca-certificates p11-kit -
Move into the directory where you downloaded your Root CA (usually
~/Downloads), for example:cd ~/Downloads -
Add your Root CA to your OS trust store. Be certain to replace
adjective-nounwith your server's unique hostname in the 3rd and 4th commands:sudo mkdir -p /usr/share/ca-certificates/start9 sudo cp "adjective-noun.crt" /usr/share/ca-certificates/start9/ sudo bash -c "echo 'start9/adjective-noun.crt' >> /etc/ca-certificates.conf" sudo update-ca-certificatesIf successful, you will receive
1 added. -
If using Firefox or Tor Browser, complete this final step.
-
If using a Chromium browser, such as Chrome or Brave, complete this final step.
Arch / Garuda
-
Ensure you have downloaded your Root CA.
-
Move into the directory where you downloaded your Root CA (usually
~/Downloads), for example:cd ~/Downloads -
Add your Root CA to your OS trust store. Be certain to replace
adjective-nounwith your server's unique hostname in the 3rd and 4th commands:sudo pacman -S ca-certificates sudo cp "adjective-noun.crt" /etc/ca-certificates/trust-source/anchors/ sudo update-ca-trustDespite no output from the last command, you can test your app right away.
CentOS / Fedora
-
Ensure you have downloaded your Root CA.
-
In
/etc/systemd/resolved.conf, ensure you haveMulticastDNS=Yes. -
Restart systemd-resolved
sudo systemctl restart systemd-resolved -
Move into the directory where you downloaded your Root CA (usually
~/Downloads), for example:cd ~/Downloads -
Add your Root CA to your OS trust store. Be certain to replace
adjective-nounwith your server's unique hostname in the 3rd and 4th commands:sudo yum install ca-certificates sudo cp "adjective-noun.crt" /etc/pki/ca-trust/source/anchors/ sudo update-ca-trust
Additional Steps for Chromium Browsers
On Linux, Chromium browsers require extra configuration to trust your Root CA. These instructions should work for Chrome, Brave, Vivaldi and other Chrome-based browsers.
-
In the URL bar, enter
chrome://settings/certificates. -
Click
Authorities > Import. -
Select your adjective-noun.crt file.
-
Check "Trust this certificate for identifying websites".
-
Click OK.