From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76970 invoked by alias); 10 Jul 2017 22:38:27 -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 76958 invoked by uid 89); 10 Jul 2017 22:38:26 -0000 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 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; Mon, 10 Jul 2017 22:38:25 +0000 Received: from homiemail-a43.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTP id DD44C6003C2F for ; Mon, 10 Jul 2017 15:38:23 -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 B76DE6003C2C for ; Mon, 10 Jul 2017 15:38:23 -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> From: jeff Message-ID: <19170552-87dc-ffc3-b396-8cfd203ead91@jeffunit.com> Date: Mon, 10 Jul 2017 22:38: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: <87eftoxcty.fsf@Rainer.invalid> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00157.txt.bz2 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