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=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 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=KEY, secret, agent, xxx 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> From: jeff 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 " >> 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