Page MenuHome GnuPG

--with-fingerprint <FILE> does not show the fingerprint in some cases.
Closed, ResolvedPublic

Description

I cannot retrieve the fingerprint information from this key file:

    $ gpg --output 0xBB065B251FF4945B.gpg --export 0xBB065B251FF4945B
    $ gpg --with-colons --with-fingerprint 0xBB065B251FF4945B.gpg
    pub:-:2048:1:BB065B251FF4945B:2008-07-27:::f:
    uid:::::::::Daniel T. Hagan <daniel@kickidle.com>:
    sub:-:2048:1:6BA86443C0C6CDA2:2008-07-27::::
    sub:-:2048:1:16C018D9B89B420A:2008-07-27::::

There should exist an "^fpr" line in the output. Compare to:

    $ gpg --output 0x4713D527ECE16009.gpg --export 0x4713D527ECE16009
    $ gpg --with-colons --with-fingerprint 0x4713D527ECE16009.gpg
    pub:-:1024:17:4713D527ECE16009:2005-06-06:::f:George Hacker (GLS) <ghacker@redhat.com>:
    fpr:::::::::8BFD3F436366D9820E9EAB2F4713D527ECE16009:
    uid:::::::::George Hacker <georgeh@axian.com>:
    uid:::::::::George Hacker <ghacker@axian.com>:
    uat:::::::::1 2493:
    sub:-:1024:16:0D94CF6C0C8C2F1B:2005-06-06::::

Of the 453 keys in my public keyring, this happens on the following 8 keys.

    0x072DC7442B89BD45
    0x14774C7B9958256C
    0x4B2A4897D39DA0E3
    0x63E42BD8C58C753A
    0x677A7DE8CC9A6F67
    0x6FA1B04BB6724E04
    0x9710B89BCA57AD7C
    0xBB065B251FF4945B

From discussion on the mailing list, it appears that this is due to the keys having a direct signature on
the key, which could be possibly getting in the way of formatting the output correctly.

I have both versions 1.4.16 and 2.0.22 installed, and it appears to be affected with both.

Event Timeline

werner added a subscriber: werner.

Fixed for 2.0. But take care: The code now also uses the fixed-list-mode which
is the default in --list-keys for ages:

pub:-:1024:17:4713D527ECE16009:1118095577:::-:
fpr:::::::::8BFD3F436366D9820E9EAB2F4713D527ECE16009:
uid:::::::::George Hacker <georgeh@axian.com>:
uid:::::::::George Hacker <ghacker@axian.com>:
uid:::::::::George Hacker (GLS) <ghacker@redhat.com>:
uat:::::::::1 2493:
sub:-:1024:16:0D94CF6C0C8C2F1B:1118095578::::

werner claimed this task.
werner removed a project: Restricted Project.