-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add auto locate key support #221
Conversation
will solve #117 |
The same way that e.g. |
Hey @vsajip by default you add |
It's there to facilitate machine parsing of the information - as everything is delimited by colons, there's no need to guess how things are laid out. |
If information is lost when |
@vsajip after investigating the output a bit more, it seems as if the data is encoded into a different format (timestamp instead of human readable dates for example). I searched through the gnupg docs but I can't find any information on how the other data is encoded. What resources did you use to parse the output of the other functions from your library? |
The |
@vsajip thank you, those docs helped very much. I've now added the parsers. However, I'm not a pgp keys expert myself, but it seems as if there are multiple different fingerprints returned for the same key - i decided to simply use the first key, as it seems to be the correct one. Can you take a look over the code? |
@vsajip Are there any news on this? |
Sorry, been busy on other things. Will get to it as soon as I can. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #221 +/- ##
==========================================
- Coverage 96.55% 96.53% -0.03%
==========================================
Files 2 2
Lines 1771 1816 +45
Branches 173 176 +3
==========================================
+ Hits 1710 1753 +43
- Misses 28 29 +1
- Partials 33 34 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Still getting errors when testing locally. From my log: 2024-01-23 10:33:57,830 DEBUG gnupg Thread-3 1235 gpg: error retrieving '[email protected]' via WKD: Invalid URI
2024-01-23 10:33:58,026 DEBUG gnupg Thread-3 1235 gpg: error retrieving '[email protected]' via NTDS: No keyserver available
2024-01-23 10:33:58,026 DEBUG gnupg Thread-3 1235 gpg: error retrieving '[email protected]' via LDAP: Not implemented
2024-01-23 10:33:58,026 DEBUG gnupg Thread-3 1235 gpg: error retrieving '[email protected]' via DNS CERT: No name
2024-01-23 10:33:58,031 DEBUG gnupg Thread-3 1235 gpg: error retrieving '[email protected]' via DANE: No name |
Thanks very much for this patch. I've incorporated the changes but made some local edits to do with testing locally, so I won't merge this PR - but your changes are incorporated in 3df9074. |
No problem, I'm glad this feature got added! |
Hey @vsajip thanks for your awesome package! I'd like to add auto locate key support (retrieving keys from WKD for example).
I managed to add support for retrieving the fingerprint, but I'd like to include all the information
gpg
provides.Here's an example of what
gpg
outputs to the console when autolocating a key:You can see that it tells you when the key was generated and what type it is. I'll need some help from you regarding this information. How can I extract it? I'm using
StatusHandler
to extract the fingerprint and the email, but how do I find out the other stuff?