Skip to content

Commit

Permalink
Add test for correct signing time in RFC3161 countersignatures, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphje committed Dec 8, 2024
1 parent 7e58694 commit 429510a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_authenticode.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ def test_whois_valid_countersignature_rfc3161(self):
pefile = SignedPEFile(f)
pefile.verify()

# test that the signing time is correct in this case
self.assertEqual(
list(pefile.signed_datas)[0].signer_info.countersigner.signing_time,
datetime.datetime(
2019, 12, 11, 8, 40, 17, 750_000, tzinfo=datetime.timezone.utc
),
)

def test_jameslth_valid_when_revocation_not_checked(self):
"""this certificate is revoked"""
with open(str(root_dir / "test_data" / "jameslth"), "rb") as f:
Expand Down

0 comments on commit 429510a

Please sign in to comment.