How to get fingerprint from public key before importing to keyring?

Werner Koch wk@gnupg.org
Wed Dec 12 09:04:02 2001


On Wed, 12 Dec 2001 14:50:49 +0900, kisimoto  said:

> I have a question about public key. I know there is a way to get 
> fingerprint after importing to keyring, but I can not find it 

gpg --with-fingerprint file-with-public-keys

> If there is no way, would you teach me the format of key 
> file(.asc)?

Yes, see rfc2440

> For example, when key length is 1024 bits, fingerprint or the 
> part to identify key owner is from XX byte to XX byte in the 

The fingerprint is not stored with the key but must be computed from
it (see g10/keyid.c)

  Werner