Kleopatra: Improve verification feedback of S/MIME signatures for expired certificates
Closed, ResolvedPublic

Assigned To
Authored By
timegrid
Mon, Aug 31, 2:59 PM

Description

This is the current verification feedback of detached and embedded smime signatures with expired certificates:

It should be simliar to the verification feedback for an expired pgp signature:

Logs:

Testdata:




Note: To generate new signature files (system time needs to be between the expire date of the user cert and valid from date of the root cert) :

>gpgsm --faked-system-time 1787919771 --default-key alice+expired --detach-sign test.pdf > detached.p7s
gpgsm: WARNING: running with faked system time: 2026-08-28 12:22:51
gpgsm: DBG: adding certificates at level -2
gpgsm: signature created

>gpgsm --status-fd 2 --verify detached.p7s test.pdf
[GNUPG:] NEWSIG
gpgsm: Signature made 2026-08-28 12:22:51 UTC
gpgsm:                using rsa4096 key F9AAFDC6628657B337097C28486F2CA7E8D37C8E
gpgsm: certificate has expired
gpgsm:   (expired at 2026-08-28 12:22:51)
[GNUPG:] EXPKEYSIG F9AAFDC6628657B337097C28486F2CA7E8D37C8E /CN=Alice expired/O=QA/L=Erkrath/ST=NRW/C=DE/EMail=alice+expired@gnupg.test
[GNUPG:] VALIDSIG F9AAFDC6628657B337097C28486F2CA7E8D37C8E 2026-08-28 20260828T122251 20260828T122251 0 0 1 8 00
gpgsm: Good signature from "/CN=Alice expired/O=QA/L=Erkrath/ST=NRW/C=DE/EMail=alice+expired@gnupg.test"
[GNUPG:] TRUST_FULLY 0 shell

Details

Version
vsd-3.4.0-beta1344 @ win10

Event Timeline

timegrid created this object with edit policy "Contributor (Project)".
ebo triaged this task as Normal priority.Mon, Aug 31, 4:06 PM
ebo edited projects, added Bug Report; removed Feature Request.
ikloecker moved this task from Backlog to WIP on the vsd34 board.
ikloecker changed the task status from Open to Testing.Tue, Sep 1, 9:45 AM
ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Sep 7, 9:46 AM

Looks good to me on vsd-3.4.0-beta1356bis, gpg-2.2.56-beta5 @ win10:

Notes:

  • The signature is VS-NfD Compliant is still displayed
  • The data could not be verified is not displayed

Both is fine for now and new tickets should be created, if this should be changed, too.

timegrid edited projects, added vsd34 (vsd-3.4.0); removed vsd34.