]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFS r365681: certctl: fix hashed link generation with duplicate subjects
authorKyle Evans <kevans@FreeBSD.org>
Sun, 13 Sep 2020 02:17:17 +0000 (02:17 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 13 Sep 2020 02:17:17 +0000 (02:17 +0000)
commit411040f20233369b4dcb31ba080a0f1c87ec479e
tree495c6e3c76ca9c8d4ab2763ba2508afb45dc721b
parentfeb814df6b3ae90b9b39025b667daa0b72a82db3
MFS r365681: certctl: fix hashed link generation with duplicate subjects

Currently, certctl rehash will just keep clobbering .0 rather than
incrementing the suffix upon encountering a duplicate. Do this, and do it
for blacklisted certs as well.

This also improves the situation with the blacklist to be a little less
flakey, comparing cert fingerprints for all certs with a matching subject
hash in the blacklist to determine if the cert we're looking at can be
installed.

Future work needs to completely revamp the blacklist to align more with how
it's described in PR 246614. In particular, /etc/ssl/blacklisted should go
away to avoid potential confusion -- OpenSSL will not read it, it's
basically certctl internal.

PR: 246614
Approved by: re (gjb)
usr.sbin/certctl/certctl.sh