From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco van Hulten Subject: Re: gpg-agent error: No pinentry Date: Thu, 19 Dec 2019 10:02:40 +0100 Message-ID: <20191219100240.3b404ba9@jasniac.instanton> References: <20191218224127.5192dde2@jasniac.instanton> <20191218215008.GA8426@jurong> <20191219092258.30cccce4@jasniac.instanton> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/+K1ggvtyQBJFUUic=ZqmSYu"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47220) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihri1-0008Et-No for help-guix@gnu.org; Thu, 19 Dec 2019 04:03:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihri0-0004fZ-B4 for help-guix@gnu.org; Thu, 19 Dec 2019 04:03:01 -0500 Received: from alfons.uib.no ([2001:700:200:30::141]:41735) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihrhz-0004Gh-BR for help-guix@gnu.org; Thu, 19 Dec 2019 04:03:00 -0500 Received: from alfux.uib.no (smtp.uib.no) [2001:700:200:6::a:1f0c] by alfons.uib.no for help-guix@gnu.org with esmtp (Exim 4.92.3) id 1ihrhs-000UEg-Os; Thu, 19 Dec 2019 10:02:55 +0100 Received: from 173.92-220-42.customer.lyse.net (jasniac.instanton) [92.220.42.173]:59990 by smtp.uib.no for help-guix@gnu.org with esmtpsa (Exim 4.92.3) id 1ihrhs-00059e-63; Thu, 19 Dec 2019 10:02:52 +0100 In-Reply-To: <20191219092258.30cccce4@jasniac.instanton> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --Sig_/+K1ggvtyQBJFUUic=ZqmSYu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable correction follows inline=E2=80=94 Any help is appreciated. Je 19 dec 09:22 skribis Marco: > Je 18 dec 22:50 skribis Andreas: > > On Wed, Dec 18, 2019 at 10:41:27PM +0100, Marco van Hulten wrote: =20 > > > Do I need to do any more actions accept for 'guix package -i gnupg > > > pinentry'? =20 > >=20 > > I also have a file .gnupg/gpg-agent.conf in my home directory > > containing the following lines: > >=20 > > default-cache-ttl 300 > > max-cache-ttl 3600 > > pinentry-program /home/USERNAME/.guix-profile/bin/pinentry-curses =20 >=20 > Thank you, Andreas and G=C3=A1bor, very useful to know that pinentry-prog= ram > should be set. I did so: >=20 > $ file $(realpath $(grep ^pinentry-program ~/.gnupg/gpg-agent.conf | awk = '{print $2}')) > /gnu/store/12gagy0ql4v7qlv9px54lz5fy4d7gff9-pinentry-tty-1.1.0/bin/pinent= ry-tty: > ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, > interpreter /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld= -linux-x86-64.so.2, > for GNU/Linux 2.6.32, not stripped >=20 > Importing a public and private key pair, following [1], worked properly > now, but it still complains when decrypting a file. >=20 > [1]: https://www.debuntu.org/how-to-importexport-gpg-key-pair/ >=20 > To be sure, if I now try to remove the key, 'gpg --delete-key publiko', > it says that I need to use option "--delete-secret-keys" to delete the > private key first. So it appears to be really there. However, >=20 > $ date | gpg -e > jadaja.gpg > gpg: encrypted with 4096-bit RSA key, ID 54AE7D44B93BDBDF, created 20= 19-05-30 > "Marco van Hulten (publiko) " > gpg: public key decryption failed: No pinentry > gpg: decryption failed: No secret key Sorry, the lines were not copied consistently. Now the whole encryption/decryption process verbatimly copied from my terminal: $ date > test.txt $ gpg --output test.txt.gpg --encrypt --recipient marco@hulten.org test= .txt $ gpg --decrypt test.txt.gpg=20 gpg: encrypted with 4096-bit RSA key, ID 54AE7D44B93BDBDF, created 2019= -05-30 "Marco van Hulten (publiko) " gpg: public key decryption failed: No pinentry gpg: decryption failed: No secret key > I tried killing gpg-agent to be sure it uses the current configuration, > but again it complains about pinentry. >=20 > Apropos, I this e-mail is signed with this very key. >=20 > =E2=80=94Marco --Sig_/+K1ggvtyQBJFUUic=ZqmSYu Content-Type: application/pgp-signature Content-Description: OpenPGP digitale handtekening -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEDZPVdgAMKNh/RNOWn8NzTfuEQA0FAl37PLAACgkQn8NzTfuE QA363A/+M0QR8PRyD9beFL+KqtBoWoRHjB6RXf2nifr4ZVXAStBGnNVbyZs2vnMM cST/fxNmR5GnIMXEJ7SsUKXvLCNcoWQTCeuxyPVXHau7eMSMaW67tyogPj9mR3xg Xij2w9F8HxuS5LMC1nCH0MxuPP1wWeHlDo//gk+JeV9BQXgt+w7D2nOVSa4Edc6E VDoBG/9wncEz76qNBgs3qWj56PXynYRueWcwbdNjQYsEAduVgAeDmaAKw6NUXaTm GVJydT0H8wO8hm9lt8sGQnyNOlAYYfuuk3yAjjWEa32eY+C7k4YV3WeanlF0Cc2b tAWC3jPBIIDbKZPI9V1TRFJGuNpH0whG+9dH6Yr7MRRWeGvTt9TeVq0hIBgpeGxr RMK8reFnzVEvh9p8InvHat6UZ83gsA9DBbifHCobh3N7Bzjx6DwGNr71WiTHcjUB pGp953Y6IiqUysCVy9qyXT9H1/vuj1kymfdaE1StggJtO7DxB5if4s1yw2bJaLsY 1m3qUZTE2xFphz8+QIXqzcCrKu8KKkjPLQKR7dbT+JpecZ/p95r7Zhhw+r12I4ln Z10BCoirbRfWrULjBGXBVaxUYPStxZA4wz6pRlogyk/gPEmswTpC4A0l1jpOUTwP D7Cn39aW9SjX2m7K4GsQRSgiZgGuM9vAi2LQnHXYo2GT5tsDnSQ= =CaDV -----END PGP SIGNATURE----- --Sig_/+K1ggvtyQBJFUUic=ZqmSYu--