Finding the key-id of an armoured key

greg@turnstep.com greg@turnstep.com
Fri Jan 10 20:24:04 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message


> I need to be able to establish various details about a key (public or 
> secret) that is held as armoured text, preferably without having to 
> import it into a keyring first.
>...
> Any suggestions as to how I can get this information. I'm sure it should 
> be simple, but I just can't see it.

The --dry-run option is nice for this, as well as liberal use of -v and --status-fd:

gpg --status-fd 0 -v -v --dry-run --import pubkey.14964AC8.asc

--
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200301101423

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+Hx38vJuQZxSWSsgRAj7DAJ9CS39CRBtUVXv7UTmrBBK3CxKB0QCfQLZc
AlhKkNU+JQw7u1zra8c3Pwg=
=BN0L
-----END PGP SIGNATURE-----