Skip to main content

How to Add Root CAs to Ubuntu

Reference: https://ubuntu.com/server/docs/install-a-root-ca-certificate-in-the-trust-store

Install the CA certificate package:

sudo apt-get install -y ca-certificates

Now, you can install any local intranet root CA, with this:

NOTE: We are copying in the .crt file.
Once the trust bundle is created, with a later step, the file will be converted to PEM format.

sudo cp ogsofttech.lan_ca.crt /usr/local/share/ca-certificates

Once you have all the certificates loaded, you need to add them to the trust store, with this:

sudo update-ca-certificates

Once done, you can verify that your certificate is in pem format:

sudo ls /etc/ssl/certs/ | grep ogsofttech.lan_ca

You will see something like this, if loaded into the trust bundle:

image.png

If you are looking for the local intranet Root CA certificate, see this: Current Intranet Root CA Certificate