You are not logged in.
Alice runs
gpg --export -a -o pub.ascto export her public keys to pub.asc.
How can Bob list the keys in pub.asc without importing them?
So far the best solution that I've found is
gpg --list-only --import pub.ascbut that seems kludgy because it's still running through the entire import process. Is there any way to inspect the keyfile directly (and maybe extract a subset of keys from it to another file)?
Last edited by Xyne (2012-03-20 04:10:14)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Do you have an example file available for testing/playing with?
Offline
Do you have an example file available for testing/playing with?
Offline
Xyne, surely you sftwed first?
This came up pretty quickly:
gpg --with-fingerprint public_key.ascand so did this:
Offline
Thanks.
What search terms did you use? I tried several variations of:
gpg list keys in key file (and keyfile)
gpg list before import
gpg inspect key file
gpg examine key file
gpg show me the keyfile's secrets
gpg just list the *%$#%^ keys already
...
Nowhere in the man page do I see anything that indicates that "--with-fingerprint" would accept a file argument.
--fingerprint
List all keys (or the specified ones) along with their finger‐
prints. This is the same output as --list-keys but with the
additional output of a line with the fingerprint. May also be
combined with --list-sigs or --check-sigs. If this command is
given twice, the fingerprints of all secondary keys are listed
too.
...
--with-fingerprint
Same as the command --fingerprint but changes only the format of
the output and may be used together with another command.
...
EXAMPLES
gpg --list-keys user_ID
show keys
gpg --fingerprint user_ID
show fingerprintI had tried "gpg --list-keys <file>" but that doesn't work, so I had no reason to think that --with-fingerprint would work, as it is really just a modified version of "--list-keys".
Last edited by Xyne (2012-03-20 04:10:53)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
What search terms did you use?
gpg list keys detail "without importing"
Which took me here. The answer is two or three messages into the thread
.
Offline
Thanks.
It appears my search-fu is shamefully weak.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline