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=Q/FPdVS9XYtMKutT 2shPhJ5/hylfM7TfShC/58jtfKw/NM7YX4XOR71hbQZyln8/z61OTDH6GOPNLdU4 BSE5elAH5zUoRDBVBqrsNRzjQUr6wcva9fb3wBEWLxvf9mRiDCIGL7Xpr7cvRBDD f1uvEA6nwFECGYYl4NkLpOEm/DU= 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=/0Qqiy6dCBnCAN731Ojv1L EPJlU=; b=TmpsmzwXmR0JcQZMRHlPaT9VSKFBIUAY//73zOXZi8brbWr8Fjm5+X OjmUdXt4WjvB5hhCezzVylxjz+WVn5jJs4Vd7UTAEEaVymoM+0q0EYlOngPrM8kh A6Jka2EMuy/+qxmuJmVGZbcINhym0x7mwNsbOHvqMj/wXpKpcr2bQ= 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=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=tty, demonstrated, secret, Hx-spam-relays-external:ESMTPA X-HELO: homiemail-a43.g.dreamhost.com Subject: Re: problem with gnupg2 not prompting for passphrase To: cygwin AT cygwin DOT com References: <3e91fbf6-cf13-718f-5f0f-8e77cd57b169 AT towo DOT net> <80c253d7-7ea6-ac5c-0bc1-a6ac4ee3f4d4 AT jeffunit DOT com> <87eftoxcty DOT fsf AT Rainer DOT invalid> <19170552-87dc-ffc3-b396-8cfd203ead91 AT jeffunit DOT com> <1345cecb-8465-f1e6-4fa0-85407af5e761 AT towo DOT net> <99d1afac-cfa6-17e9-aa0c-3cf5033f8179 AT SystematicSw DOT ab DOT ca> From: jeff Message-ID: <155948c1-1a82-b033-2322-f9f8f62c17c4@jeffunit.com> Date: Tue, 11 Jul 2017 10:56:06 -0700 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: <99d1afac-cfa6-17e9-aa0c-3cf5033f8179@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 of gnupg2. As I demonstrated, there is no problem finding my public key, nor my private key, which are located in the default place. The problem is the method used to get the passphrase is very broken. After reading some stuff via google, I added GPG_TTY=$(tty) export GPG_TTY to my .bashrc file, with no observable changes. 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