delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/11/14:19:01

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=ZHo8nQgXKXhVpKtw
frXNFXJIm8CaOGSBdxl+hsc3zUnlFaIU8Wj4vKLrbFSC490N680cpM5D6YraW/uU
9iXZOkTezvYJyk9Yq3wXZSw7Xpv9foO978UF4rnw+IFjS9KZGlw5UWwuYKR/T3re
UvypAYmpqECehKf68b21J7YEBsY=
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=vGZp8dVwLLeogIWK1D4zRI
RVn28=; b=L5VdVIW5H0GRYi5NYGNJat02ht2570P5acuw/q0dfteT+105wPkmUa
ZopDKw6TMi3rMiwC4F/Dm+fpOPlmBQ/I5L0bFR9ivksag3nCGguL8x7erTkurtXS
qQytjCkGTExNwQw8iqhACU4AjBF6dUFOtEBKZ1TjKkmuYbXt2Jnf0=
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=-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
Subject: Re: problem with gnupg2 not prompting for passphrase
To: cygwin AT cygwin DOT com
References: <ddb4fd0f-8138-7cc5-ccf5-678fe6365afd AT jeffunit DOT com> <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> <155948c1-1a82-b033-2322-f9f8f62c17c4 AT jeffunit DOT com> <CY4P101MB0214B15068E2112AE15A61B6BFAE0 AT CY4P101MB0214 DOT NAMP101 DOT PROD DOT OUTLOOK DOT COM>
From: jeff <jeff AT jeffunit DOT com>
Message-ID: <a7f23d0f-422c-543e-4277-4bb237332d9b@jeffunit.com>
Date: Tue, 11 Jul 2017 11:18:45 -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: <CY4P101MB0214B15068E2112AE15A61B6BFAE0@CY4P101MB0214.NAMP101.PROD.OUTLOOK.COM>
X-IsSubscribed: yes

On 7/11/2017 11:10 AM, Garber, Dave (GE Oil & Gas, Non-GE) wrote:
> 
> 
>> -----Original Message-----
>> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
>> Behalf Of jeff
>> Sent: Tuesday, July 11, 2017 1:56 PM
>> To: cygwin AT cygwin DOT 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 <jeff AT jeffunit DOT com>"
>>>>>>> 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

- Raw text -


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