delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/06/17:31:25

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=eSiwHFSDdaxG/sjA
kIO9pYTpjMqlasTyVkTMLTHMPXR1iTvHE0nF3jY9T3Xq9iZU6odQ8A86R2DGprc9
QfYOYoBrhkqQ85ScV2EFt6P2dl5vs5AYI/oXdn7TSS7Ajd7c+fIbAob1AKQ7nRWT
a5rcAYuqcByXL/QIOjhoJgfp/rA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=0hzy+YgEpAgqzp75rly3ES
rtlfs=; b=j5qVjbpQmH4cK/FavXUnCnpe1d5r3QoGmSMjBskpSEDHncKGZ5lPaj
Q7fXuTYr6FOvZzM3/BRXT2KyDDvVcq9uci/AV8m9gCSODck9EBkAGBZOl4vawTOT
NDgwI7UoiLvsRPtFwY01DHl5FieN+Eu4HCBb0JsW5eio40PokF/Ts=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
X-CornellRouted: This message has been Routed already.
Subject: Re: Can't sign with gpg2 using pinentry-curses
To: cygwin AT cygwin DOT com
References: <df11b983-7949-c74e-2d32-5ce7e314c6cb AT cornell DOT edu> <a1eaa601-173d-4a43-200d-661b0378036d AT cornell DOT edu>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <089d626b-e826-f732-1355-7e7f8bfca9b8@cornell.edu>
Date: Thu, 6 Jul 2017 17:31:08 -0400
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: <a1eaa601-173d-4a43-200d-661b0378036d@cornell.edu>
X-PMX-Cornell-Gauge: Gauge=X
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019