🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #206857

Re: GPG Question

#206857
From: George Orwell
Date: Wed, 05 Jul 2006 18:25
34 lines
2063 bytes
Remailer User wrote:

> I need to import a key and then do a list-keys to pick off information
> about the key, but I can't figure out how to know what key I just
> imported.
> 
> I looked through the gpg manual, but don't see anything I can use for
> this.
> 
> The command to import is gpg --import file, but that tells me nothing
> about what was just imported.

Sure it does. When you import the key GPG tells you exactly what keys
you are importing. You should see something like this...

  gpg: key A0000000: public key "John Doe <no@no.none>" imported
  gpg: Total number processed: 1
  gpg:               imported: 1

If you don't know the identity of the key you're importing beforehand
then you should probably keep this output somewhere. Redirecting stdout
to a text file might be in order. If you do a lot of this then maybe a
shell script or batch file that "logs" all imports. Might call it
IMPORTKEYS and have it look something like this...

  #! /bin/bash
  date >> $HOME/mylogs/gpgimports.log
  gpg --import %1 >> $HOME/mylogs/IMPORTKEYS.log

A Window$ batch file shouldn't look much different. Just call it with
the name of the file holding the keys you want to import, like...

  IMPORTKEYS keys.asc
Technical Details
Message-ID: <19c05778f0d7c15a76f3d817c7379be9@mixmaster.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
References: <20060705120011.wXq7ErtUffxB@newsanon.org>

Show Full Headers
Complete Article Headers
Message-ID: <19c05778f0d7c15a76f3d817c7379be9@mixmaster.it>
Subject: Re: GPG Question
Date: Wed, 05 Jul 2006 18:25:42 +0000
From: George Orwell <nobody@mixmaster.it>
References: <20060705120011.wXq7ErtUffxB@newsanon.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsgate.cistron.nl!xs4all!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
Newsgroups: alt.privacy.anon-server
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 34