laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/40524?usp=email )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: x509 cert: fix weird cert check ......................................................................
x509 cert: fix weird cert check
Change-Id: I18beab0e1b24579724704c4141a2c457b2d4cf99 --- M pySim/esim/x509_cert.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified
diff --git a/pySim/esim/x509_cert.py b/pySim/esim/x509_cert.py index c8a0386..8139a09 100644 --- a/pySim/esim/x509_cert.py +++ b/pySim/esim/x509_cert.py @@ -149,7 +149,7 @@ 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)