Friday, October 07, 2016

Install a self-signed certificate in ubuntu-based systems

Install a self-signed certificate in ubuntu-based systems
http://askubuntu.com/questions/73287/how-do-i-install-a-root-certificate

Given a CA certificate file 'foo.crt', follow these steps to install it on Ubuntu:
First, copy your CA to dir /usr/local/share/ca-certificates/
sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt
then, update CA store
sudo update-ca-certificates
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....
Adding debian:foo.pem
done.
done.

No comments: