How to list keys and revcerts in a file without doing anything with them?

Michael Schierl schierlm at gmx.de
Mon Aug 8 10:58:24 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Given is a text file (actually the clipboard contents) that may contain
- - among other things that should be ignored - keys and revocation
certificates.

How do I list the contents of that file? I do not intend to import the
contents directly into my primary keyring, so my current solution is to
import everything into a new empty keyring and then list its contents.

Problem: I do not get the revocation certificates since my empty keyring
obviously does not contain their secret keys. They create a short notice
on import to stdout, but that one is quite hard to parse from all the
information "flying by".

Alternative solution, just to use gpg without parameters. That one does
not import anything, but it may start decrypting or verifying other
stuff in that file (which I don't like since that may ask for
passphrases, which is even more parsing...)

- --list-packets is quite a lot of info and not really easier to parse.

The only obvious option that is left for me is to add an
"Edit->Paste directly" command that allows to import revocation
certificates, but without any confirmation.

Does anyone know any simple way or command line switch i missed?

Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQvcer52HdZ9YtIzdAQK4bgf9HJjieJA5KrMSaArDskbQU2teHUwkAHHm
uXE/lPqwIX2K2cK3fs+m3vJkwqNa8WSZvlQtDTuGpBiDL4UUWvUC7xymqwwHW3i3
X6W/3vdleBTjV5b6FunqXjK6E7QEhFFai5/6c3BkqeCZzz1EinSHspr8mOHRPPOX
WB0JAVK/Rs+IBpzPp8qyf0eyH6+JHhodIUrea5AK6aN9rmaZHiI3wRGAdvYg1ri8
clQwidO3rjozC6ZcSn2BYeYg5UnrbS/P7+DhI6iL3bIEM9gzvjK/99klr9M+rczp
AaCtKxHtSsyU7ObVGSC72HOOglSQCarGvD8sm9+vNDmcfj/+kOVy0g==
=4vH1
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list