Skip to content
Commit ad3043fd authored by David Howells's avatar David Howells
Browse files

X.509: Fix self-signed determination



There's a bug in the code determining whether a certificate is self-signed
or not: if they have neither AKID nor SKID then we just assume that the
cert is self-signed, which may not be true.

Fix this by checking that the raw subject name matches the raw issuer name
and that the public key algorithm for the key and signature are both the
same in addition to requiring that the AKID bits match.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 6c2dc5ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment