keybase / gpg-wrapper

A wrapper around the GPG CLI.
BSD 3-Clause "New" or "Revised" License
23 stars 7 forks source link

Wrong index and list_fingerprints results when gpg.conf specifies "with-fingerprints" #4

Closed maxtaco closed 10 years ago

maxtaco commented 10 years ago

The results an look like this:

tru::1:1394408664:1439900531:3:1:5
pub:u:4096:1:47484E50656D16C7:1384876967:1511107367::u:::scESC:
fpr:::::::::222B85B0F90BE2D24CFEB93F47484E50656D16C7:
uid:u::::1384876967::5379B9706C5D468C86A572B07E28EBDB26BE0E97::Keybase.io Code Signing (v1) <code@keybase.io>:
sub:u:4096:1:5929664098F03378:1384876967:1511107367:::::e:
fpr:::::::::10F79F9BEB724B73FB673D385929664098F03378:

Note the fpr on the subkey, too.

To get this to work right, we need to fix the key indexer, and then use the key indexer in list_fingerprints.

See keybase/keybase-issues#190 for a case in which this was screwing people up.