Receiving a key on standard output

David Shaw dshaw@jabberwocky.com
Fri Jan 3 20:46:04 2003


On Fri, Jan 03, 2003 at 08:41:47PM +0100, Thomas Arend wrote:
> Am Freitag, 3. Januar 2003 01:54 schrieb David Shaw:
> > On Thu, Jan 02, 2003 at 01:30:44PM -0500, Jason Harris wrote:
> > > On Thu, Jan 02, 2003 at 02:19:57PM -0000, greg@turnstep.com wrote:
> > >
> > > NB:  The PGP signature on your message is bad.
> > >
> > > [fetching a key to a file]
> > > Run gpgkeys_* directly (it has been covered on one of these lists
> > > before).  See ./code/lget[.asc] on my website for an example.
> >
> > The only difficulty with this is that versions of GnuPG less than 1.3
> > don't have a gpgkeys_hkp - only gpgkeys_ldap and gpgkeys_mailto.
> > Without gpgkeys_hkp, I think the easiest way to fetch a key from a
> > keyserver into a file is with wget or similar programs:
> >
> >  wget -O thefile.asc
> > 'http://keyserver.kjsl.com:11371/pks/lookup?op=get&search=0x99242560'
> >
> > 'thefile.asc' now has the key.
> >
> > David
> 
> The following command will receive and import the key
> 
> wget -O - \
> 'http://keyserver.kjsl.com:11371/pks/lookup?op=get&search=0x99242560' | gpg \
> - --import

Why bother with that?  Just do 'gpg --recv-keys 99242560'

The reason to retrieve it to a file first was so that the original
poster could then examime the file before importing the key.

David

-- 
   David Shaw  |  dshaw@jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson