Page MenuHome GnuPG

--fingerprint and --with-fingerprint create slightly different results
Closed, ResolvedPublic

Description

This has been reported by a Debian user and it is to my opinion a bug. The
output of --fingerprint <keyid> and --with-fingerprint <keyfile> are slightly
different. Using the reporters example:

% gpg --with-fingerprint AC15B50C.asc
pub 1024D/AC15B50C 2004-12-26 Evgeni -SargentD- Golov <sargentd@die-welt.net>

Key fingerprint = 0C04 F872 0963 ADC9 AA83  882B 24A0 1418 AC15 B50C

uid Evgeni Golov <evgeni@golov.eu>
[..]

% gpg --fingerprint AC15B50C
pub 1024D/AC15B50C 2004-12-26

Key fingerprint = 0C04 F872 0963 ADC9 AA83  882B 24A0 1418 AC15 B50C

uid Evgeni -SargentD- Golov <sargentd@die-welt.net>
uid Evgeni Golov <evgeni@golov.eu>
[..]

In the first case the first UID is above the fingerprint. This seems to cause
issues with gpgsigs.

Details

External Link
http://bugs.debian.org/682064
Version
1.4.12

Event Timeline

dleidert set External Link to http://bugs.debian.org/682064.Jul 19 2012, 11:48 PM
dleidert added projects: gnupg, Bug Report, Debian.
dleidert set Version to 1.4.12.
dleidert added a subscriber: dleidert.

The first example runs gpg on a file and displays what it sees in the file. The
--with-fingerprint only adds the fingerprint. The second example is a shortcut
for --list-keys --with-fingerprint and lists the keys known to gpg.

Given that running gpg on any file is not well defined; I would consider this a
minor bug. However, gpg 2.1 messes the output completely up and thus I need to
do something for it. But not for 1.4.

neal claimed this task.

It looks like this problem has been fixed in the meantime. As such, I'm marking
this bug as resolved. Thanks.

$ gpg2 --with-fingerprint 4F43C989.txt
pub rsa1024/4F43C989 2015-11-17

Key fingerprint = A8D8 E9B9 D25D 6AB8 9997  AEE4 3817 872D 4F43 C989

uid Testing <testing@testing.com>
sub rsa1024/3CAD33EE 2015-11-17
sub rsa1024/FE39BBA1 2015-11-17
sub elg1024/A10351BD 2015-11-17
$ gpg2 --fingerprint 4F43C989
pub rsa1024/4F43C989 2015-11-17

Key fingerprint = A8D8 E9B9 D25D 6AB8 9997  AEE4 3817 872D 4F43 C989

uid [ unknown] Testing <testing@testing.com>
sub rsa1024/3CAD33EE 2015-11-17
sub rsa1024/FE39BBA1 2015-11-17
sub elg1024/A10351BD 2015-11-17