From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4698 invoked by alias); 11 Jul 2017 18:18:49 -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 4670 invoked by uid 89); 11 Jul 2017 18:18:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Gas, oil, H*M:422c, secret X-HELO: homiemail-a43.g.dreamhost.com Received: from sub5.mail.dreamhost.com (HELO homiemail-a43.g.dreamhost.com) (208.113.200.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Jul 2017 18:18:47 +0000 Received: from homiemail-a43.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTP id E6A1C600451A for ; Tue, 11 Jul 2017 11:18:45 -0700 (PDT) Received: from [192.168.47.120] (cpe-198-72-204-7.socal.res.rr.com [198.72.204.7]) (Authenticated sender: jeff@jeffunit.com) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTPA id C29F36004519 for ; Tue, 11 Jul 2017 11:18:45 -0700 (PDT) Subject: Re: problem with gnupg2 not prompting for passphrase To: cygwin@cygwin.com References: <3e91fbf6-cf13-718f-5f0f-8e77cd57b169@towo.net> <80c253d7-7ea6-ac5c-0bc1-a6ac4ee3f4d4@jeffunit.com> <87eftoxcty.fsf@Rainer.invalid> <19170552-87dc-ffc3-b396-8cfd203ead91@jeffunit.com> <1345cecb-8465-f1e6-4fa0-85407af5e761@towo.net> <99d1afac-cfa6-17e9-aa0c-3cf5033f8179@SystematicSw.ab.ca> <155948c1-1a82-b033-2322-f9f8f62c17c4@jeffunit.com> From: jeff Message-ID: Date: Tue, 11 Jul 2017 18:18: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 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00191.txt.bz2 On 7/11/2017 11:10 AM, Garber, Dave (GE Oil & Gas, Non-GE) wrote: > > >> -----Original Message----- >> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On >> Behalf Of jeff >> Sent: Tuesday, July 11, 2017 1:56 PM >> To: cygwin@cygwin.com >> Subject: EXT: Re: problem with gnupg2 not prompting for passphrase >> >> On 7/11/2017 10:51 AM, Brian Inglis wrote: >>> On 2017-07-10 23:07, Thomas Wolff wrote: >>>> Am 11.07.2017 um 00:38 schrieb jeff: >>>>> On 7/10/2017 1:21 PM, Achim Gratz wrote: >>>>>> jeff writes: >>>>>>> jeff_xeon:/cygdrive/u:503: gpg2 --output fred.good --decrypt >>>>>>> fred.gpg >>>>>>> gpg: encrypted with 4096-bit RSA key, ID A3791E7DD935A424, created >>>>>>> 2013-03-21 >>>>>>> "Jeff Deifik " >>>>>>> gpg: public key decryption failed: No such device or address >>>>>>> gpg: decryption failed: No secret key >>>>>>> >>>>>>> I have uninstalled the standalone version of gnupg2 before I did this. >>>>>>> It seems most likely that the version of gpg2 being invoked is a >>>>>>> cygwin version. >>>>>> It fails to find your private key, so it is quite obviously not in >>>>>> a place where gpg2 expects to find it. >>>>> I have my keys stored in $HOME/.gnupg which is where gnupg v1 >> expects them. >>> >>> gnupg2 uses the same --homedir paths, $GNUPGHOME env var, native >>> Windows reg key, and native Windows portable apps homedir as gnupg1. >>> >>>> Just guessing: Some software does not look in $HOME for config files (e.g. >>>> openssh) but expects them in /home/... >>> >>> OpenSSH expects user config files in ~/.ssh/ where ~ is $HOME, or the >>> home directory from "getent passwd $LOGNAME", which defaults to /. >>> >>> They'd better expect $HOME, not /home/$LOGNAME, as $HOME could >> also be >>> /u/$LOGNAME, /mnt/nfs/OrkeyDorkey, or /mnt/Network\ Users/Orkey\ >>> Dorkey! ;^> >>> >> >> The problem almost certainly lies with pinentry. It seems to be a new feature > > See https://sourceware.org/ml/cygwin/2017-07/msg00100.html for the solution. That did fix the issue. No doubt pinentry needs to be fixed to call pinentry-w32 when appropriate. I can now use gpg2 via bash as well as via thunderbird / engmail. thanks, jeff -- 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