OpenPGP recipient key matching fails for keys that contain only email address, but no name
Categories
(MailNews Core :: Security: OpenPGP, defect)
Tracking
(thunderbird_esr78 fixed, thunderbird80 fixed)
People
(Reporter: lencalot, Assigned: KaiE)
Details
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
- Installation of Thunderbird 78.0b4.
- Add Mail Account 1 & 2
- Create a new secret GPG key with Thunderbird 78.0b4 for Mail Account 1
- Import secret key for Mail Account 2, that was created with GnuGPG (RSA 4096) and some public keys for other Recipients
- Set trust level for these keys to "Yes, I have verified in person..."
- Try to send a mail with new secret key as sender [78.0b4 & 79.0b1]
- Try to send a mail with the older, imported key as sender [78.0b4 & 79.0b1]
- Installation on another computer and try again -> same behaviour.
Actual results:
Sending a mail from Mail Account 2 with the imported key (signer) to Mail Account 1 and using the new created secret key (encryption) works fine.
Sending a mail from Mail Account 1 with the new key (signer) to Mail Account 2 and using the imported key (encryption) doesn't work.
Sending a mail from Mail Account 1 to any other recipient with imported gpg key doesn't work.
Got a error message, but without any clue what went wron... "Sending of the message failed".
Expected results:
Expected result should be that the mail can be send encrypted.
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
After importing a secret key, you must confirm that it is your personal key. Use menu tools / openpgp key management, open your key, and confirm "yes, treat this key as a personal key".
Importing using the final release will ask that question on import.
Does that help?
No, that does'nt help. I have set them as personal key after import.
Assignee | ||
Comment 3•4 years ago
|
||
Do you still have this issue with 78.0.1 ?
I currently don't have an idea what's going wrong.
I have create a couple of new keys with Kleopatra and import to Thunderbird for testing:
- RSA 2048: it works fine
- RSA 3072: it works fine
- RSA 4096: it doesn't works
I have create a key directly in Thunderbird for doublechecking:
- RSA 4096: it works fine
I have currently version 79.0b2 (Win 10, 64-Bit).
And another test, two keys created with Kleopatra and imported to Thunderbird:
- RSA 4096 with name and mail address: it works
- RSA 4096 without name, with mail address: it doesn't works
(In reply to Kai Engert (:KaiE:) from comment #3)
Do you still have this issue with 78.0.1 ?
I currently don't have an idea what's going wrong.
Tested with 80.0b1 again. Still the same issue.
For testing, I have add a name to my keys with Kleopatra and then imported it again to Thunderburd. Then it's works fine with the same Key. So I have a workaround for the moment, but It would be nice to use keys without name assigned to send encrypted mails.
To summarize: The issue is that keys without names don't seem to work.
Assignee | ||
Comment 7•4 years ago
|
||
Thanks, the missing name is indeed the cause, we have an incorrect check.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Updated•4 years ago
|
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/4c3c67a991a8
OpenPGP recipient key matching fails for keys that contain only email address, but no name. r=PatrickBrunschwig DONTBUILD
Comment 10•4 years ago
|
||
Seems there's some linting failures from this. Can you take care?
Comment 11•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 12•4 years ago
|
||
phab updated to include lint fix
Assignee | ||
Comment 13•4 years ago
|
||
Comment on attachment 9168180 [details]
Bug 1653763 - OpenPGP recipient key matching fails for keys that contain only email address, but no name. r=PatrickBrunschwig
OpenPGP correctness fix. No risk.
Comment 14•4 years ago
|
||
Comment on attachment 9168180 [details]
Bug 1653763 - OpenPGP recipient key matching fails for keys that contain only email address, but no name. r=PatrickBrunschwig
[Triage Comment]
Approved for beta
Assignee | ||
Comment 15•4 years ago
|
||
Comment 16•4 years ago
|
||
Comment on attachment 9168180 [details]
Bug 1653763 - OpenPGP recipient key matching fails for keys that contain only email address, but no name. r=PatrickBrunschwig
[Triage Comment]
Approved for esr78
Assignee | ||
Comment 17•4 years ago
|
||
Description
•