-
Notifications
You must be signed in to change notification settings - Fork 92
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
Handle unkonwn public key types in GPG #5
Comments
Thanks for suggestion! Unfortunately the problem lies in the Its all one big PGP key so the packet parsing would have to be fixed in the lib or monkey-patch it somehow. |
I ran into this too. Trying to figure out some kind of workaround... Even just being able to tell GPG "please only export RSA public keys" would get around this, but I can't find such an option. The real solution would be to get pgpdump to do what we want, but I am not sure how to get that to happen either. |
Aha, found a workaround. https://github.com/SkierPGP/python-pgpdump The above fork has support for ed25519 keys. It's in pypi with the name "pgpdump3". If you modify setup.py to reference that instead of "pgpdump" then it works. |
I would recommend using: https://github.com/SecurityInnovation/PGPy a much better, python-only PGP library in my opinion. And it shouldn't hiccup when it encounters an ed25519 key. |
@J08nY thanks for suggestion, lib looks nice and maintained. I won't have time to port it to this - API seems different. I want to preserve all current functionality:
If the library can do exactly the same as the current one (all json fields extracted) then it is a good choice to change, but I won't get to that any time soon. |
Sure PGPy supports all that, let me have a look on how pgpdump is used here, and hopefully make a PR to switch to PGPy. |
Right now an unknown public key in GPG stops all processing of that public key block; it'd be great if it ignored such keys and still tested all other keys. To reproduce:
(Run on debian/buster)
The text was updated successfully, but these errors were encountered: