Bug#868769: hkt tries to open pubring.gpg which does not exist in gnupg >= 2.1

Daniel Kahn Gillmor dkg at debian.org
Thu Sep 7 18:15:22 UTC 2017


On Tue 2017-07-18 12:15:29 +0000, Clint Adams wrote:
> On Tue, Jul 18, 2017 at 03:43:52AM -0700, Cody Brownstein wrote:
>> gnupgp versions 2.1 and higher store public (and private) keys in keybox
>> format in ~/.gnupg/pubring.kbx
>> 
>> hkt tries to open ~/.gnupg/pubring.gpg which is correct for gnupg
>> versions lower than 2.1
>> 
>> Because hkt tries to open ~/.gnupg/pubring.gpg which does not exist, hkt
>> fails with the following error:
>> 
>> amnesia at amnesia:~$ hkt export-pubkeys 0x9BB25A1A5C1D9108
>> hkt (hopenpgp-tools) 0.19.4
>> Copyright (C) 2012-2016  Clint Adams
>> hkt comes with ABSOLUTELY NO WARRANTY. This is free software, and you
>> are welcome to redistribute it under certain conditions.
>> hkt: /home/amnesia/.gnupg/pubring.gpg: openBinaryFile: does not exist
>> (No such file or directory)
>
> This is true; hOpenPGP has no concept of keybox format, at least for
> now.

Is there any reason why hkt should try to use something in the GnuPG
homedir?

Shouldn't hkt prefer an explicitly-named OpenPGP keyring instead?  GnuPG
upstream generally doesn't want users poking around in its homedir, and
prefers users to use its documented export and import interfaces.

        --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20170907/2edf87dd/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list