How to check an exported key's fingerprint

Werner Koch wk at
Fri Apr 6 17:12:27 CEST 2012

On Fri,  6 Apr 2012 15:13, MichaelQuigley at TheWay.Org said:

> Using GnuPG 1.4.11 is there a way to check the fingerprint of a public key 
> before importing it to the keyring?  The key was exported using the 

There is no such option.  However, you may use

  gpg --with-fingerprint FILE

to show the content of a file.  If you use 

  gpg --with-fingerprint --with-colons FILE

you get the output in a machine readable format.

> (So I won't need to ask again.)  The documentation I've located is either 
> for GnuPG 2 or rather sketchy.

  man gpg

But anyway, the gpg and gpg2 are almost identical from the user



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list