Extracting information from a key
Nico Schottelius
nico-linux-gnupg at schottelius.org
Fri Oct 15 15:11:03 CEST 2004
Werner Koch [Thu, Oct 14, 2004 at 10:56:04PM +0200]:
> On Thu, 14 Oct 2004 16:09:22 +0200, Nico Schottelius said:
>
> > - display the ID of it (readable by other programs)
> > - display E-Mail, Name
> > - display signatures on the key
> > - display other information (key type, length)
>
> Some ietms are displayed with -i
Sounds good, but is there any promise the output won't change?
Using
scice% cat my-pgp-key | gpg -i
pub 1024D/8D0E27A4 2003-01-12 Nico Schottelius (the penguin gets you) <nico at schottelius.org>
uid Nico Schottelius (the penguin gets you) <nico at schottelius.net>
uid Nico Schottelius (business) <nico at schotteli.us>
uid Nico Schottelius (the penguin gets you) <schottelius at wdt.de>
sub 4096g/3976EA51 2003-01-12 [expires: 2007-01-11]
sub 4096R/C251BAE5 2004-05-08 [expires: 2007-05-08]
works fine, but when trying with --status-fd option (which I use
for communication between my program and gpg) the output is still the
same and using
scice% cat my-pgp-key | gpg -i --status-fd 3 3>&1 >/dev/null
does not display any output
(`cat my-pgp-key | gpg -i --status-fd 3 3>&1` displays the same as
just using gpg -i).
`cat my-pgp-key | gpg -v` is as good/bad useable, as it's still
human readable output, which is not bad, but which could perhaps change.
Using
scice% cat my-pgp-key | gpg -v --status-fd 3 3>&1 | grep 'GNUPG:'
gpg: armor header: Version: GnuPG v1.2.5 (GNU/Linux)
gpg: NOTE: signature key 401F6AA5 expired Wed Nov 13 16:03:36 2002 CET
[GNUPG:] KEYEXPIRED 1037199816
[GNUPG:] SIGEXPIRED deprecated-use-keyexpired-instead
I don't get any useful information.
Are there any plans to realize putting this information to the status-channel,
so other programs can simply extract this information?
Or do you (the developers) tell me that the output of gpg -v or gpg -i
will never change? If so, I'll be able to use the standard human output.
Thanks for any information again,
Nico
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : /pipermail/attachments/20041015/ab18c263/attachment.bin
More information about the Gnupg-users
mailing list