Skip to content

Commit

Permalink
Save x509_cert after reassigning
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Nov 24, 2024
1 parent 242779f commit 82fe3aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion signxml/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ def verify(
self.config = expect_config
if deprecated_kwargs:
self.config = replace(expect_config, **deprecated_kwargs)
self.x509_cert = x509_cert
self._parser = parser

if x509_cert or cert_resolver:
Expand All @@ -382,6 +381,8 @@ def verify(
)
x509_cert = x509_cert.to_cryptography() # type: ignore[union-attr]

self.x509_cert = x509_cert

if id_attribute is not None:
self.id_attributes = (id_attribute,)

Expand Down

0 comments on commit 82fe3aa

Please sign in to comment.