When given a file with an armored public GnuPG key, i.e. a file (
pubkey.gpg) that was created with:
gpg -r 0xDEADBEEF --export --armored > pubkey.gpg
What is the best way to get information such as the finger print in that file, without importing it into my keyring?
The best way I found so far (and I am not happy with) is:
gpg --dry-run --import pubkey.gpg
Naturally, I grepped the gpg man page, but didn't find an obvious solution.