Re: [Pyme-help] Retrieve key from keyserver
Status: Beta
Brought to you by:
belyi
From: Jerome C. <je...@ri...> - 2010-07-21 17:16:58
|
Le 2010-07-21 08:46, Werner Koch a écrit : >> Am Mittwoch, 21. Juli 2010 09:18:22 schrieb Jerome Charaoui: >>> I'd like to know if it's possible to retrieve a PGP key from a keyserver >>> with PyMe. >>> >>> According to the GPGME documentation, this should be possible by >>> combining mode.LOCAL with mode.EXTERN. However when I try this I >>> consistently get a EOF error. > > > What this kludge dioes is to use the --locate-keys option of gpg: > > --locate-keys > Locate the keys given as arguments. This command basically uses > the same algorithm as used when locating keys for encryption or > signing and may thus be used to see what keys gpg2 might use. > In particular external methods as defined by --auto-key-locate > may be used to locate a key. Only public keys are listed. Thanks for the explanation. It seems that --locate-keys is designed to be used when doing encryption or signing operations. What I need is, given a fingerprint, simply download the corresponding public key from a keyserver and load it into a PyMe key object. If PyMe/GPGME doesn't support this kind of operation, are there other alternatives to calling /usr/bin/gpg ? Thanks, -- Jerome |