Hello Uwe, using gnupg 2.2.40-1.1 on Debian GNU/Linux I can confirm the behaviour you are seeing.
rm -r ~/tmp/dot.gnupg/ GNUPGHOME=~/tmp/dot.gnupg/ bash gpg --locate-external-keys \ mkorpersh...@baylibre.com u.kleine-koe...@baylibre.com gpg --list-options show-unusable-uids--list-keys gpg --list-options \ show-unusable-uids,show-only-fpr-mbox --list-keys interesting enough adding --with-colons does show both pubkeys. Am Dienstag 15 April 2025 16:17:44 schrieb Uwe Kleine-König: > To generate the WKD content, I'm using > > test@taurus:~$ gpg --list-options show-only-fpr-mbox,show-unusable-uids > --list-keys 0D2511F322BFAB1C1580266BE2DCDD9132669BD6 > u.kleine-koe...@baylibre.com > > (and pipe that into `gpg-wks-client -C $docroot --install-key`). Because you are using it in a script, --with-colons is usually recommended to keep the interface more stable. That does not easily output the email address. > Here the list-option `show-unusable-uids` doesn't have the desired > effect and no line is generated for Mattijs's key and email address. I wonder if this is a defect at all as the documentation says: https://gnupg.org/documentation/manuals/gnupg/GPG-Configuration-Options.html#index-list_002doptions_003ashow_002donly_002dfpr_002dmbox | For each user-id which has a valid mail address print | only the fingerprint followed by the mail address. As the user-id is revoked, it somehow is not a _valid_ email address, isn't it? > With `show-unusable-uids` in the list-options I would have expected that > had this effect on the fpr-mbox listing in the same way as on the > default format. I also wonder: What sense would it make to put a pubkey for an invalid uid on the WKD? However either the documentation or the behaviour could be improved somehow I guess. > I'm using gpg as provided in Debian unstable (version: 2.4.7-14). Thanks for taking the time to writeup your report! This how GnuPG gets better! Best Regards, Bernhard -- https://intevation.de/~bernhard +49 541 33 508 3-3 Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users