x509 cert: fix weird cert check

Change-Id: I18beab0e1b24579724704c4141a2c457b2d4cf99
This commit is contained in:
Eric Wild
2025-06-25 10:22:42 +02:00
parent 67995146eb
commit dc5fdd34bf

View File

@@ -149,7 +149,7 @@ class CertificateSet:
check_signed(c, self.root_cert)
return
parent_cert = self.intermediate_certs.get(aki, None)
if not aki:
if not parent_cert:
raise VerifyError('Could not find intermediate certificate for AuthKeyId %s' % b2h(aki))
check_signed(c, parent_cert)
# if we reach here, we passed (no exception raised)