On Wednesday, 17 January 2018 06:47:27 GMT Alexander Ben Nasrallah wrote:
> On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
> > When I try to decrypt a file I get:
> > 
> > gpg2 text.asc
> > ...
> > gpg: public key decryption failed: No pinentry
> > gpg: decryption failed: No secret key
> > 
> > app-crypt/pinentry-1.0.0-r2 is installed
> 
> Sometime you have to set one of the following.
> 
>       # PIN entry program
>       pinentry-program /usr/bin/pinentry-curses # no X
>       pinentry-program /usr/bin/pinentry-qt
>       pinentry-program /usr/bin/pinentry-kwallet
>       pinentry-program /usr/bin/pinentry-gtk-2
> 
> to whatever suits you in ~/.gnupg/gpg-agent.conf.
> 
> Hope that helps.

Or, instead of the above it should have:

pinentry-program /usr/bin/pinentry

which is a symlink to the pinentry GUI used by the system.  In any case this 
file will be set up by /usr/bin/gpgconf, which is run when a GUI application 
calls gnupg, rather than edited manually by the user.

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to