Given a CA certificate file 'foo.crt', follow these steps to install it on Ubuntu:
First, copy your CA to dir
sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt
then, update CA store
That's all. You should get this output:
Updating certificates in /etc/ssl/certs... 1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
No file is needed to edit. Link to your CA is created automatically.
Please note that the certificate filenames have to end in
.crt, otherwise the
update-ca-certificates script won't pick up on them.
This procedure works also in newer versions: manuals.