New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Keys with non-ASCII User Ids do not work #623
Comments
I had this with some keys from an older plugin version where after some update the key wouldnt work anymore. |
To clarify: To the best of my knowledge the offending keys were created with |
I just noticed something intresting. both your and my key have a non-US-ASCII character in the name of the user ID (it even says that the user ID is invalid when importing the key) maybe something changed in some encoding stuff and mailvelope goes pretty damn strict about it. |
The issue still persists. @My1 raised an important point: All my public keys with non-ASCII characters in the name are marked as invalid. I'll update the issue to reflect this. |
Raised an issue with openpgpjs. It seems that parsing keys with non-ASCII unicode characters in the user Id is broken. |
Update: The offending key user Id's seem to be encoded with CP-1252 instead of UTF-8 and are indeed invalid. However, GnuPG accepts them. |
The keys were created with GnuPG using a Windows-1252 encoded settings file. Apparently GnuPG creates invalid keys in this case. I've raised an issue with GnuPG: dev.gnupg.org/T4360. In my opinion, this is not an issue with OpenPGP.js as the keys are clearly invalid. Of course, it would be nice if the keys worked anyway as they do with GnuPG. |
Thanks for analyzing this further. I have a slight preference for not accepting such keys. In any case this would have to be fixed in OpenPGP.js. |
but that leaves the question my my super old key generated with mailvelope very long ago hasnt been accepted for quite a while |
Update:
This issue affects all keys with non-ASCII characters in the name of the user Id. These keys cannot be used with Mailvelope.
Problem
Mailvelope marks some valid public keys as invalid. The keys cannot be used for encryption
How to Reproduce:
The text was updated successfully, but these errors were encountered: