0

I have created a self-signed CA certificate and to install it I issue the following:

$ sudo cp ~/myCA.crt /usr/share/ca-certificates/
$ sudo update-ca-certificates

The output however is:

Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

Why 0 added? What am I doing wrong?

Some context:

  • This is on 16.04
  • I have verified the file does get copied to /usr/share/ca-certificates/
  • Setting file permissions on /usr/share/ca-certificates/myCA.crt to 644 makes no difference
1

From the man page:

It reads the file /etc/ca-certificates.conf. Each line gives a pathname of a CA certificate under /usr/share/ca-certificates that should be trusted.

My guess is that you did not make any changes to this file and thus did not specify that your new certificate should be considered trusted.

  • Indeed! Once I added the path (actually it looked like it should be a sub-path from /usr/share/ca-certificates/), and issued the command it worked ... sort of. This time it spew: "WARNING: myCA.pem does not contain a certificate or CRL: skipping", which is another story. – Majid Fouladpour Oct 8 '17 at 12:15

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.