How do I make GnuPG (specifically version 1.4.12) display the full, 64-bit (8-byte) key ID for a key on a keyring on my system?
Doing gpg --list-keys --fingerprint XXXXXXXX only displays the 32-bit portion of the key ID, which I already know, and the fingerprint (which at least in the past has not necessarily been the same as the key ID, although the rightmost 32 bits do match in this particular case).
Googling turned up some pages about the importance of specifying the 64-bit key ID to minimize the risk of collisions, and some GnuPG options which want or accept a long key ID, but I couldn't find anything about how to actually display the long key ID.
keyid-format 0xlongto~/.gnupg/gpg.confyou can change the default behavior for gpg2 (I haven't tested gpg v1) to use the full key length. – lukecampbell Apr 24 '17 at 14:46gpgversions (e.g. 2.2.4), because-kdoesn't show the subkey IDs by default. That makes it very difficult to match IDs. With--keyid-format long,-kwill show the subkey IDs. – wisbucky Jul 09 '19 at 23:16