X-Recipient: archive-cygwin@delorie.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=i7EufbSTCJlcioxJ
	5oYoBLzi3DSckR4vlotE9OxuCtQhc6RC6OTYHJIP79voysZjDJU5yv+EKo5Glt0y
	IJ4L8CoZn3M3PR9LkWKC2xY+5A1Rxv5X/W5X+u2HCUCjvd5w2qJn3Sj6m/+Z+mPr
	vo1GV94ENIj9i1+my7QwlOM+4mU=
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=25H4cmb647a+CJ/69esbMG
	WHrG0=; b=Lh+9Q7Loc7H58WreJGmcJlDvqJh0GZSDa6qJFNv18QXke+fORYdYMw
	CcLnvEj58WuwLGWnomSH2owCpfqEYRppAblDjegPZ/1pX6uOG8vRY6WgufvWOEtj
	Ti8JGN++jDKs5d1PFUvHQuBWzCYkZGWOdm0cyd45UiXRlgjG31D2I=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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=KEY, secret, agent, xxx
X-HELO: homiemail-a43.g.dreamhost.com
Subject: Re: problem with gnupg2 not prompting for passphrase
To: cygwin@cygwin.com
References: <ddb4fd0f-8138-7cc5-ccf5-678fe6365afd@jeffunit.com> <3e91fbf6-cf13-718f-5f0f-8e77cd57b169@towo.net> <80c253d7-7ea6-ac5c-0bc1-a6ac4ee3f4d4@jeffunit.com> <87eftoxcty.fsf@Rainer.invalid>
From: jeff <jeff@jeffunit.com>
Message-ID: <19170552-87dc-ffc3-b396-8cfd203ead91@jeffunit.com>
Date: Mon, 10 Jul 2017 15:38:23 -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: <87eftoxcty.fsf@Rainer.invalid>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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@jeffunit.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.
Using gnupg2:

 gpg2 --export -a "Jeff Deifik"
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQGiBEt8tlURBACkuHVVgDFnNK9JeY9JbaoBwyaiCebmUPbp66YIMjRi4LKHOsYG
zVR0XUlYfB9M7S6td8HEOhakjpjXFdSzBqWzFEhBKhnl4r2lPU7WxH/+f8Tmyuuo
...


gpg2 --export-secret-key -a "Jeff Deifik"
gpg: key XXX: error receiving key from agent: No such device or address
- skipped
gpg: key FXXX: error receiving key from agent: No such device or address
- skipped
gpg: key XXX: error receiving key from agent: No such device or address
- skipped
gpg: key XXX: error receiving key from agent: No such device or address
- skipped
gpg: WARNING: nothing exported

(I replaced the hex with XXX)

I suspect there is a problem with the pinentry and/or agent.
The pinentry thing seems to be a new thing with gnupg2.

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

