Adding new uid to causes bad signature

Rens Rikkerink contact at ikkerens.com
Fri May 3 15:06:56 CEST 2024


Hey there Eva!

And thank you for your reply.

> For my key and using gpg 2.4.5 on a standard Windows 10 system "check" didn't
> give an error and signing a document worked without any issues.

I should perhaps clarify that signing anything else (documents, git
commits) seems to work just fine. I can sign things, and then verify
the signature, and it matches. My issue seems to solely relate to
signing an extra uid.

> Importing your second pubkey did not change anything noticeable, gpg reported
> no changes on the key and there is no new UID to be seen.

That is not the behaviour I am seeing on my end:
$ gpg --import before.asc
gpg: key 29AD46D6F58287A3: public key "Rens Rikkerink
<contact at ikkerens.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found

$ gpg --import after.asc
gpg: key 29AD46D6F58287A3: 1 bad signature
gpg: key 29AD46D6F58287A3: "Rens Rikkerink <contact at ikkerens.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

As you can see here, the second public key does trigger a slightly
different response for me (1 bad signature), so it ignores it and
marks the public key as otherwise unchanged.

> To avoid any confusion does
>
>   gpg -k 408FB2EBC3DF3DBBE0143D9A29AD46D6F58287A3
>
> show the new UID for you?

Yes, it does:
$ gpg -k 408FB2EBC3DF3DBBE0143D9A29AD46D6F58287A3
gpg: checking the trustdb
gpg: no ultimately trusted keys found
pub   ed25519 2022-10-26 [CA]
      408FB2EBC3DF3DBBE0143D9A29AD46D6F58287A3
uid           [ unknown] Rens Rikkerink <contact at ikkerens.com>
uid           [ unknown] Rens Rikkerink <rens.rikkerink at luminis.eu>
sub   ed25519 2022-10-26 [S]
sub   cv25519 2022-10-26 [E]

> Is there additional info if you add "--list-options show-unusable-uids"
> before the "-k"?

No further information as far as I can tell:
$ gpg --list-options show-unusable-uids -k
408FB2EBC3DF3DBBE0143D9A29AD46D6F58287A3
pub   ed25519 2022-10-26 [CA]
      408FB2EBC3DF3DBBE0143D9A29AD46D6F58287A3
uid           [ unknown] Rens Rikkerink <contact at ikkerens.com>
uid           [ unknown] Rens Rikkerink <rens.rikkerink at luminis.eu>
sub   ed25519 2022-10-26 [S]
sub   cv25519 2022-10-26 [E]

Thank you for your time so far.

Yours,
Rens Rikkerink



More information about the Gnupg-users mailing list