File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -297,9 +297,9 @@ def _verify_cert_digests(self, verify_result: VerifyResult):
297297 if signing_cert is not None and signing_cert_v2 is not None :
298298 raise InvalidInput ("Expected to find exactly one of xades:SigningCertificate or xades:SigningCertificateV2" )
299299 if signing_cert is not None :
300- self ._verify_cert_digest (signing_cert , expect_cert = cert_from_key_info ,idx = idx )
300+ self ._verify_cert_digest (signing_cert , expect_cert = cert_from_key_info ,idx = idx + 1 )
301301 elif signing_cert_v2 is not None :
302- self ._verify_cert_digest (signing_cert_v2 , expect_cert = cert_from_key_info ,idx = idx )
302+ self ._verify_cert_digest (signing_cert_v2 , expect_cert = cert_from_key_info ,idx = idx + 1 )
303303
304304 def _verify_signature_policy (self , verify_result : VerifyResult , expect_signature_policy : XAdESSignaturePolicy ):
305305 signed_signature_props = self ._find (verify_result .signed_xml , "xades:SignedSignatureProperties" )
You can’t perform that action at this time.
0 commit comments