[openssl-users] c_hash/ca-certificates.crt

Matt Caswell matt at openssl.org
Fri Feb 23 14:55:47 UTC 2018

On 23/02/18 14:06, etc at coderhacks.com wrote:
> Hello!
> Normally I put new certificates into /etc/ssl/certs and create the
> hash-link.
> That workes for me for many years.
> Just found out 2 new things agout that.
> 1. There is c_hash that does the creation of the hash-link for me.
> Great!
> 2. ca-certificates.crt is there too. It has any certificate inside of it
> that is also in the directory but not the ones I added by myself over
> the years.
> Today was the 1st time I had to add a certificate to thefile because a
> tool looked into that file and not into the directory.
> Please what is the relation to the directory and ca-certificates.crt and
> is there a tool/command to that adds new certificates to the file too?

Strictly speaking this isn't an OpenSSL question. OpenSSL does not
create or distribute the contents of /etc/ssl/certs. However it *does*
provide the ability to read a set of CA certs from either a directory or
a file. Applications can choose to work which ever way they want.

I assume that distros have opted to provide both a directory *and* a
file so that they can supply certs for which ever way an application
chooses to work.

My understanding is that you are supposed to put locally added certs in
/usr/local/share/ca-certficates, and then run the update-ca-certificates
tool which updates both the directory and the file.


More information about the openssl-users mailing list