What is the "list keyring content" command?

Hauke Laging mailinglisten at hauke-laging.de
Mon Jun 7 21:43:23 CEST 2010


the man page says:

"gpg2 may be run with no commands, in which case it will perform a reasonable 
action depending on the type of file it is given as input (an encrypted 
message is decrypted, a signature is verified, a file containing keys is 

start cmd:> gpg secondsecring.gpg
sec  1024R/0x297AB799 2010-06-02 Smartcard Test <smartcardtest at hauke-
ssb  1024R/0xF64B4F0F 2010-06-02
ssb  1024R/0xF17AAD5B 2010-06-02
ssb  1024R/0xD62B6574 2010-06-02

But which command is used here? I don't find a suitable one.

start cmd:> gpg --list-keys secondsecring.gpg
gpg: error reading key: Kein öffentlicher Schlüssel

I hope there is a "tell me what this is" command that does nothing else (so 
that it can be safely used). If it is a keyring, list the content (like now 
without a command), if it is an encrypted file it would be nice to know that 
(and the recipients' key IDs) WITHOUT gpg automatically trying to decrypt it 
(assuming a cached passphrase). If it is a signature tell me the ID of the 
signing key (and the hash of the file?) without validating the signature 
(maybe the signed file is unavailable).


PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 555 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20100607/a9ae911d/attachment.pgp>

More information about the Gnupg-users mailing list