Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have a bunch of machines that need to fetch https: off a server (or collection of servers). I'm operating a CA and self-signing the certificates on the server(s).

The client machines are running ubuntu. Some of the fetches are via apt, some via wget.

How do I install the CA's certificate on the clients so that all of its certs are recognized without warnings or errors? (Just the directory location is sufficient, I'll package it in an appropriate way.)


share|improve this question

marked as duplicate by random Aug 13 '14 at 14:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 6 down vote accepted

Copying the *.pem file for your certification authority to /etc/ssl/certs/ should do the trick.

share|improve this answer
And running sudo c_rehash. – phs Dec 10 '13 at 7:39
-1'd, since this directory is only used by OpenSSL, so programs using e.g. GnuTLS or Java still won't know about the CA. – grawity Dec 2 '14 at 15:32

On Ubuntu 12.04 (precise), you have to drop the certificate file to /usr/local/share/ca-certificates and it has to end with .crt

Then run update-ca-certificates. It should tell you: "1 added, 0 removed; done."

Note that unfortunately firefox does not honor the system installed certificates ( ). You can use wget or w3m, which do honor them, to test if the certificate works.

share|improve this answer

You'll have to copy the certificate of the root CA to the /etc/ssl/certs directory in PEM format. Then you must run the update-ca-certificates script which will add the certificate to the certificate bundle (/etc/ssl/certs/ca-certificates.crt) and make the symlink from the file to its hash value.

share|improve this answer

Not what you asked, but I recommend for certs. It's free but installed by default in all browsers. It is in more browsers than your self-signed cert though.

share|improve this answer
I use StartSSL's free certs, which are recognised by all the major browsers. – paradroid Jan 28 '12 at 19:55

Not the answer you're looking for? Browse other questions tagged .