From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119471 invoked by alias); 6 Jul 2017 21:23:40 -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 119454 invoked by uid 89); 6 Jul 2017 21:23:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=drawn, dialogue, pinentrycurses, gpg2 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:23:38 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v66LNZxu012343 for ; Thu, 6 Jul 2017 17:23:36 -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 v66LNZAS003810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 6 Jul 2017 17:23:35 -0400 Subject: Re: Can't sign with gpg2 using pinentry-curses To: cygwin@cygwin.com References: From: Ken Brown Message-ID: Date: Thu, 06 Jul 2017 21:23: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/msg00100.txt.bz2 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 With this, gpg2 -bs works, although I still get the annoying message gpg: selecting openpgp failed: No such device 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