You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test signatures from revoked and expired keys #3368
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.
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
Activity
[-]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[/+]