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=nzr6l5332blaZ5ha Oa7ucDzSuvWsEiEbbk2bzG9FAt7ZjY3sEwXh+thobtkau+Ah+OldcJnuYYh4LHUN IQMDh3mNXsr5WNYU+ZyQmHu7+nVGY7VOLrbJ+dPvqKeszNrCY7jn1aiI5jqrGOJ2 U8wCvl+Qg9zh3xLq4s9xT+nKbGU= 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=wooC6Qo02UceWGaFQoULnu AIIx0=; b=nVMRm9O0h/cq086+JMcEm6DlpMCftg6CypQYhHXko2uPJK/UaAsxNW yWtnCs+B53Sgp7SfJfB1vi9cGwlOYRaj3bDi696kFXClYFYmG1fLvqFHh0vK9LGu u6MbKwPwsmutBpB+5t7BrKWQwusu3PTQvhlrx+tka3EQ79vmTmzzo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=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 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: From: Ken Brown Message-ID: Date: Thu, 6 Jul 2017 17:23:33 -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: 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 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