Trusting a self-signed CA certificate
December 2020
Follow this simple steps to make your OS to trust a self-signed Certificate Authority
Red Hat / CentOS / RockyOS
Copy the CA file to /etc/pki/ca-trust/source/anchors/
and update with sudo update-ca-trust
cp my-self-signed-ca.cer /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust
Ubuntu
Copy the CA file to /usr/local/share/ca-certificates
and update with sudo update-ca-certificates
cp my-self-signed-ca.cer /usr/local/share/ca-certificates
sudo update-ca-certificates