Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
certificate identifiers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1744

PostPosted: Sun Mar 31, 2024 2:54 am    Post subject: certificate identifiers Reply with quote

I did search for this (obviously not well enough), as well as read a couple of Gentoo wiki articles.

With app-misc/ca-certificates, the certificates themselves get stored in /usr/share/ca-certificates/mozilla/, with /etc/ssl/certs/ having TWO links that (ultimately) point to each certificate. I obviously understand the link containing the name of the certificate itself, but where does the four-byte (eight hexadecimal digits) identifier come from? I can't find it inside of the certificate itself.

For example:

Code:

$ ls -al /etc/ssl/certs/ | grep cacert
lrwxrwxrwx 1 root root     21 2024-03-15 11:31:55 590d426f.0 -> cacert.org_class3.pem
lrwxrwxrwx 1 root root     21 2024-03-15 11:31:55 99d0fa06.0 -> cacert.org_class1.pem
lrwxrwxrwx 1 root root     67 2024-03-15 11:31:53 cacert.org_class1.pem -> ../../../usr/share/ca-certificates/cacert.org/cacert.org_class1.crt
lrwxrwxrwx 1 root root     67 2024-03-15 11:31:53 cacert.org_class3.pem -> ../../../usr/share/ca-certificates/cacert.org/cacert.org_class3.crt


In this case, what creates the identifiers 590d426f and 99d0fa06?

Thank you in advance.
Back to top
View user's profile Send private message
hdcg
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2013
Posts: 120

PostPosted: Sun Mar 31, 2024 4:01 am    Post subject: Reply with quote

Hi curmudgeon,

these are hash values of the linked certificates and are used for fast lookups.
They are created by the c_rehash script.

Best Regards,
Holger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum