[SOLVED] gpg doesn't import secret keys for me any more

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Jan 14 21:06:22 CET 2019


On Sat 2019-01-12 14:25:02 -0500, Ineiev wrote:
> On Sat, Jan 12, 2019 at 02:12:47PM -0500, Ineiev wrote:
>> dti at manas:~$ gpg --home h1 --import <sec.asc
>
> Sorry, this is what works:
>
> gpg --home h1 --import sec.asc

to be clear, i think the issue that you were having is that both
commands use pinentry-tty, but the former command has stdin coming from
the redirected file, not the tty.

fwiw, if you use --batch with --import, there will be no attempt to use
pinentry, ever, which should make both commands work without complaint.

hth,

         --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190114/e4933781/attachment.sig>


More information about the Gnupg-users mailing list