Can't sign with gpg2 using pinentry-curses
Ken Brown
kbrown@cornell.edu
Thu Jul 6 21:31:00 GMT 2017
On 7/6/2017 5:23 PM, Ken Brown wrote:
> On 7/6/2017 4:27 PM, Ken Brown wrote:
>> When I try to sign a file using gpg2 in a mintty or xterm terminal
>> (e.g., 'gpg2 -bs foo'), a dialogue box is drawn in the terminal, but I
>> can't figure out how to enter my passphrase. Anything I type is just
>> echoed at the bottom of the screen, regardless of what I do with the
>> mouse. If I type Ctrl-C, the bash prompt returns but the
>> pinentry-curses process keeps running for a while.
>>
>> If I install pinentry-gnome3, then 'gpg2 -bs' works fine when run from
>> an xterm window; a dialogue box pops up and I can enter the passphrase.
>
> For a solution outside of X11, it looks like pinentry-w32 will do the
> job. But simply installing that package isn't enough, because the
> script /usr/bin/pinentry never calls pinentry-w32.exe.
>
> As a workaround, I moved /usr/bin/pinentry out of the way and created a
> symlink
>
> /usr/bin/pinentry -> pinentry-w32.exe
A better workaround is
--- pinentry~ 2017-07-06 17:05:23.000000000 -0400
+++ pinentry 2017-07-06 17:27:52.200826600 -0400
@@ -82,6 +82,9 @@
elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-qt ]
then
export PINENTRY_BINARY="/usr/bin/pinentry-qt"
+elif [ -x /usr/bin/pinentry-w32 ]
+then
+ export PINENTRY_BINARY="/usr/bin/pinentry-w32"
# pinentry-curses is installed by default
else
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list