wrong key for recipient used

Hi,

In some cases a wrong key for the recipient is used, for e.g. if the recipient is “susi-store@abc-firm.de”, the key of “walter-store@abc-firm.de” is used.

Yours
Zigg

Hi Zigg,

there may be two pubkeys that have the selection string in on of their user ids.
Check
gpg -v --list-keys susi-store@abc-firm.de
to see how many pubkeys it lists.

This is the simplest explanation for the behaviour you are describing.

Best Regards,
Bernhard

Hi Bernhard,

many thanks for your information! I tested it and have to specify the matter: Assume I have the 3 public keys

store@abc.de
susi-store@abc.de
tom-store@abc.de

and want to send an email to

store@abc.de

the OpenPGP-plugin suggests to use the key of

tom-store@abc.de

because it found the word “store@abc.de” in “tom-store@abc.de”. But this is in fact the wrong key. So it would be nice to correct this with the next update.

Many thanks
Zigg

Just to clarify in which component we need to look for the problem: The Problem is not that GpgOL automatically encrypts to “tom-store@abc.de” but that the interactive GUI selection dialog preselects “tom-store@abc.de” ?

A quick test on the command line shows to me that GnuPG selects the correct key “store@abc.de” in your test scenario.

I’ve opened a ticket about this https://dev.gnupg.org/T3978

Hi Andre,

you are right: The “preselection” uses the wrong key!

Seems to be a problem in S/MIME usage, not in OpenPGP.

Yours
Zigg