- Make directory for extra certs
1
$ sudo mkdir /usr/share/ca-certificates/extra
- Incase of pem file convert it to cer
1
$ openssl x509 -in root.pem -inform PEM -out root.crt
- copy your cert to the extra directory
1
$ sudo cp root.crt /usr/share/ca-certificates/extra/root.crt
- install the cert
1
2
3
4
5
$ sudo dpkg-reconfigure ca-certificates
$ # or for non-interactive
$ sudo update-ca-certificates