Skip to content

test signatures from revoked and expired keys #3368

Todo

Description

@DenBond7

This PR's tests only cover tampered content, but #3359 also names expired and revoked signing keys. I checked locally with a throwaway test, using the same processMimeMessage path:

Case master this PR
Key hard-revoked (no reason / compromised) after signing hasBadSignatures = false true
Signature made after the key expired false true
Key soft-revoked (retired/superseded) after signing false false (correct, the signature predates the revocation)

So the fix already handles these cases. Let's pin that with unit tests in ProcessMimeMessageTest: generate a key, sign inline, then revoke or expire the key and verify against the updated cert. Without such tests, a future pgpainless update could start reporting these cases as "Missing verification key", which would quietly turn the red badge into "cannot verify". For a separate PR.

Originally posted by @DenBond7 in #3360 (comment)

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added this to the 1.6.7 milestone on Dec 2, 2026
  3. changed the title [-]This PR's tests only cover tampered content, but #3359 also names expired and revoked signing keys. I checked locally with a throwaway test, using the same processMimeMessage path:[/-] [+]test signatures from revoked and expired keys[/+] on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions