From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116060 invoked by alias); 6 Jul 2017 21:31:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 116048 invoked by uid 89); 6 Jul 2017 21:31:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=DISPLAY, Hx-languages-length:1442 X-HELO: limerock04.mail.cornell.edu Received: from limerock04.mail.cornell.edu (HELO limerock04.mail.cornell.edu) (128.84.13.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Jul 2017 21:31:13 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v66LVAHe015879; Thu, 6 Jul 2017 17:31:11 -0400 Received: from [10.128.152.219] (dhcp-gs-6363.eduroam.cornell.edu [10.128.152.219]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v66LV9HF023086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 6 Jul 2017 17:31:10 -0400 Subject: Re: Can't sign with gpg2 using pinentry-curses To: cygwin@cygwin.com References: From: Ken Brown Message-ID: <089d626b-e826-f732-1355-7e7f8bfca9b8@cornell.edu> Date: Thu, 06 Jul 2017 21:31:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=X X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00101.txt.bz2 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