gpgsm: emit more details when failing to check a crl from a crlDP
Closed, ResolvedPublic

Assigned To
Authored By
pl13
Apr 14 2026, 9:18 AM

Description

[...]
Possible improvements:
[...]

  • Show better error than "unknown host", i.e. something like "CRL check failed" or "Certificate validity check failed", but I'm not sure we get better information from gpgsm.

Before encryption the certificates are checked for validity. In case that a certificate has a broken URL as crlDP or the content of the crlDP is invalid gpgsm should provide more details when returning with failure.

Test certificates are provided by:

Maybe those smime certs will do:

  • broken: inaccessible url crlDistributionPoints = URI:http://gnupg.test/crl.pem

  • invalid: invalid content crlDistributionPoints = URI:https://gnupg.com/share/g10code-key.asc

In my tests, both have the same behavior:

  • invalid after opening the details, so the cert can't be chosen for file encryption afterwards
  • if chosen before invalidation, it hangs indefinitely on file encryption (will create another ticket for this)

Event Timeline

pl13 triaged this task as Wishlist priority.Apr 14 2026, 9:18 AM
pl13 created this task.
pl13 created this object with edit policy "Contributor (Project)".
pl13 moved this task from Backlog to WIP on the vsd34 board.
pl13 mentioned this in Unknown Object (Maniphest Task).Apr 20 2026, 10:10 AM
pl13 changed the task status from Open to Testing.Sep 1 2026, 9:23 AM
pl13 edited projects, added gnupg26; removed vsd34.
timegrid edited projects, added gpd5x (gpd-5.2); removed gpd5x.

Generally looks good to me on gpg4win-5.2.0-beta882 (gpg-2.5.24, gpgol-2.7.4) @ win11.
Gpgsm now emits more details:

  • crldp invalid
  • crldp inaccessible (called "broken" above)

Questions:

  • In the "inaccessible" case the main displayed error in Kleopatra is now "Unknown error". Is this what we want?

Note: I switched to the certificates of alice, as the email includes the case name

timegrid edited projects, added gpd5x; removed gpd5x (gpd-5.2).

Another note regarding the original issue: The "Retry with Lower Security" Dialog does not display the error anymore:

timegrid claimed this task.
timegrid added a subscriber: • ebo.

@ebo and me agreed, that the current state is fine, setting this to resolved.

timegrid edited projects, added gpd5x (gpd-5.2); removed gpd5x.
timegrid moved this task from WIP to Done on the gnupg26 board.

Note: I tested some error cases in T8234: Kleopatra: On Linux, creating S/MIME encrypted archive of multiple files for certificate with bad CRL fails with input/output error. The "Unknown Error" is the case, which says on linux: "Keine Route zum Zielrechner":

  • gnupg.test entry in /etc/hosts to an ip in a virtualbox host only network
  • virtualbox host only network attached
  • no webserver running

If the webserver is running, the error message is the same as on linux: "No CRL known".