Examine a key file

Robert J. Hansen rjh at sixdemonbag.org
Mon Nov 15 22:21:28 CET 2010


On 11/15/2010 3:19 PM, Scott Lambdin wrote:
>      If I have a base 64 exported PGP key, how can I extract the
> descriptive data about the key without importing it?

Never tested it, but this should work (or come close to working):

gpg --dry-run -vvvv --import pubkey.asc

This will spam you with a *ton* of information, all in textual format.
It can be parsed out with flex/bison pretty easily, or munged with your
Swiss Army chainsaw of choice.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5598 bytes
Desc: S/MIME Cryptographic Signature
URL: </pipermail/attachments/20101115/bc41dff0/attachment.bin>


More information about the Gnupg-users mailing list