21
5
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.
This is not pretty, but it is useful to know what options are not available, and this is a solution. So I thank you for that. – Chen Levy – 2010-08-08T13:27:05.037
1While this will work, it's way more complicated than necessary. Below I posted how to do it without any of the importing or keychain switching. – jm3 – 2013-11-17T03:17:03.933