4

I try to automate to adding a certificate on an Ubuntu server 14.04 with puppet or a one liner command.

I added certificates manually with these commands :

mkdir /usr/share/ca-certificates/extra cp toto.crt /usr/share/ca-certificates/extra/toto.crt sudo dpkg-reconfigure ca-certificates 

I tried the command : update-ca-certificates but it didn't update my /etc/ssl/certs/ca-certificates.crt.

I tried too the command : sudo dpkg-reconfigure ca-certificates (with and without the option -f noninteractive) but i can't to accept all my certificates automatically.

1 Answer 1

3

According to How do you add a certification authority to ubuntu you should copy to /usr/local/share/ca-certificates (note local) not /usr/share/ca-certificates/extra.

Also see update-ca-certificates manpage. It shows the folders and config files associated with the command.

1
  • or you can create a package that includes a certificate: unix.stackexchange.com/a/215300/120177 , upload this package to your local repo, and install with apt-get Commented Jul 11, 2015 at 17:33

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.