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 09:22:58 +0100 Message-ID: <20191219092258.30cccce4@jasniac.instanton> References: <20191218224127.5192dde2@jasniac.instanton> <20191218215008.GA8426@jurong> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/R/rzyoHL/0ry9NnoD=WZR0J"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37272) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihr5f-0005PA-Nm for help-guix@gnu.org; Thu, 19 Dec 2019 03:23:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihr5d-0006oW-Ne for help-guix@gnu.org; Thu, 19 Dec 2019 03:23:23 -0500 Received: from alfons.uib.no ([2001:700:200:30::141]:53215) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihr5b-0006Uk-8x for help-guix@gnu.org; Thu, 19 Dec 2019 03:23:20 -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 1ihr5U-000LuM-1J; Thu, 19 Dec 2019 09:23:14 +0100 Received: from 173.92-220-42.customer.lyse.net (jasniac.instanton) [92.220.42.173]:58945 by smtp.uib.no for help-guix@gnu.org with esmtpsa (Exim 4.92.3) id 1ihr5T-00042B-69; Thu, 19 Dec 2019 09:23:11 +0100 In-Reply-To: <20191218215008.GA8426@jurong> 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_/R/rzyoHL/0ry9NnoD=WZR0J Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Je 18 dec 22:50 skribis Andreas: > On Wed, Dec 18, 2019 at 10:41:27PM +0100, Marco van Hulten wrote: > > 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 Thank you, Andreas and G=C3=A1bor, very useful to know that pinentry-program should be set. I did so: $ file $(realpath $(grep ^pinentry-program ~/.gnupg/gpg-agent.conf | awk '{= print $2}')) /gnu/store/12gagy0ql4v7qlv9px54lz5fy4d7gff9-pinentry-tty-1.1.0/bin/pinentry= -tty: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-l= inux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped Importing a public and private key pair, following [1], worked properly now, but it still complains when decrypting a file. [1]: https://www.debuntu.org/how-to-importexport-gpg-key-pair/ 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, $ date | gpg -e > jadaja.gpg 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. Apropos, I this e-mail is signed with this very key. =E2=80=94Marco --Sig_/R/rzyoHL/0ry9NnoD=WZR0J Content-Type: application/pgp-signature Content-Description: OpenPGP digitale handtekening -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEDZPVdgAMKNh/RNOWn8NzTfuEQA0FAl37M2MACgkQn8NzTfuE QA3MOQ/8Cs3YlZ4kCQRve57M2C4driqTnV86qoZ3xoDCwvL35jBm/C6mP5TxoDlr IyeXmN8XMqfcxU/TZeXmidWRo9ijBpxaO3lFS0RSW9ypSstgBs4duCeHHn7Xbgg9 VTgqEV8nge/tcsLgA70yZ95+ojs4Uplk1+i+D9CpPTjkAg1KvQnRSTKmIziSkvlH R0f7VGVfNREMqkEuQKtKFLUcTVPBKNXh449iX560H1p3Wy5okkMeIZKQlWVUOFFy MTCKHqCsk+T4nX8MN1eA6H0SqgXqfOYcJKkXwu16YwEjWiIhBC45v8u0YazlymX9 rOD80KxEqiKkdekIrfGaTTfAe46uCopMpwbuJKMHGqvttxpvyemSZ/pAFK9LevmL ivXrJnlXg6Pgol3sZsJnQSqh4q/YqISSEnLqAuGwy0676buDZ2JfzuA4sbnhrqgH IQ0PG9fFnl1/HjZLSlcanSggCAuTFVOjIpRpW2vnqjmGDrKP4FWYQfnIRqiO7Lj6 hhnl6lxXVHsqexJTlCXUTfscUtOF0oVBPf7AfOxGBsai23PXu+GRVy3+iT3C18dj G3ySCw0GtcL/8lmhjkeoODIdvICgpw7XhS+AhKbrxplRlYbHMYUWCucisY9AeKMf v+nhNrXiZb2bk7A0UDuMR+NHvHzQ9ZGlk2ftZljF8E6VbKCYW/M= =4QTr -----END PGP SIGNATURE----- --Sig_/R/rzyoHL/0ry9NnoD=WZR0J--