Adding certificates to the trusted CAs#

Different Linux distributions have their own ways and locations of storing trusted CAs and self-signed certificates. Table below for quick reference.

DistributionImport locationUpdate utility
Debian
Ubuntu
Raspberry Pi OS
Kali Linux
/usr/local/share/ca-certificatesupdate-ca-certificates
RHEL
Fedora
Amazon Linux
AlmaLinux
CentOS
Rocky Linux
/etc/pki/ca-trust/source/anchorsupdate-ca-trust
Arch Linux/etc/ca-certificates/trust-source/anchorstrust anchor --store <cert file> or update-ca-trust