What is the "list keyring content" command?
bmarwell at googlemail.com
Tue Jun 8 11:18:10 CEST 2010
$ gpg2 --no-default-keyring --keyring <file> --list-keys
It doesn't give me the same output, but this seems the most obviuous
command to me. I couldn't find the exact output either. I was missing
fingerprints, but --with-fingerprint didn't help.
Hope this helps,
2010/6/8 Joke de Buhr <joke at seiken.de>:
> If I run the command on my primary keyring I get this output
> $ gpg2 ~/.gnupg/secring.gpg
> gpg: error reading key: No public key
> It doesn't look like the "reasonable action" is deterministic.
> On Monday 07 June 2010 21:43:23 Hauke Laging wrote:
>> 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 listed)."
>> 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).
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
More information about the Gnupg-users