Installing root CA in Ubuntu linux

Ubuntu is holding all root CA certifcates in the path /usr/share/ca-certificates so you can create one more folder – extra in the path,

# sudo mkdir /usr/share/ca-certificates/extra

Let’s say your CA certificate name cacert.crt so copy the certificate to the extra folder

# sudo cp cacert.crt /usr/share/ca-certificates/extra

Add the entry to the file “extra/cacert.crt” (you can see all other CA certificates added in the ubuntu)

# sudo vi /etc/ca-certificates.conf  (I am using vi editor)

Update the installed CA’s

# sudo update-ca-certificates

shareit@ubuntu:~# sudo update-ca-certificates
Updating certificates in /etc/ssl/certs… WARNING: Skipping duplicate certificate cert_igca_rsa.pem
WARNING: Skipping duplicate certificate cert_igca_rsa.pem
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d….done.

You have done the job.

Generating OpenSSL certificate in Ubuntu: https://help.ubuntu.com/community/OpenSSL