Hi there, I use Funtoo Linux and am using a setup to encrypt/decrypt emails, as described bellow:
The current setup has these versions:
-app-crypt/gnupg-2.1.20 https://paste.pound-python.org/show/J15iQdjEco9R0K8tiFYI/
-mail-client/thunderbird-52.4.0 https://paste.pound-python.org/show/Xa21NGiUhSMZ9qi2sImM/
-app-crypt/pinentry-1.0.0 https://paste.pound-python.org/show/oHxbfVUR6kE6gY5SL2eZ/
-x11-plugins/enigmail-1.9.8.3 No USE flags available.
The issue is arisen whenever I try to send a encrypted/signed message to my recipient or whatsoever.
In Thunderbird->Enigmail->Debugging Options->View log where I was able to identify the related error,
Tests performed
I've identified the following from Enigmail's log:
[GNUPG:] KEY_CONSIDERED 1CB4928C6DD1A3E5532A7666EE6D6ABFAA37553C 2
[GNUPG:] BEGIN_SIGNING H8
[GNUPG:] PINENTRY_LAUNCHED 16750 curses 1.0.0 ? ? ?
gpg: signing failed: Inappropriate ioctl for device
[GNUPG:] FAILURE sign 83918950
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
It's full log is here https://paste.pound-python.org/show/UJ8j0ARnu9BltCPZB1Cb/
I already tried several related attempts to solve this issue. All without success except the workaround I found here: https://tinyurl.com/ydypezkc
Which describes the following
- gpgconf --kill gpg-agent
- gpg-agent --daemon
- Open Thunderbird (already configured for PGP encryption) and encrypt your email
- Behavior is as expected: pinentry will ask your password and the task will be carried out.
After this workaround is applied pinentry will no longer be skipped issuing the related problem.