From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?I=C3=B1igo?= Serna Newsgroups: gmane.emacs.bugs Subject: bug#22941: 25.1.50; epa-list-secret-keys does not find gpg private keys Date: Fri, 11 Mar 2016 18:17:24 +0100 Message-ID: <8737rxdjdn.fsf@gmail.com> References: <878u1t5j7x.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1457716712 15739 80.91.229.3 (11 Mar 2016 17:18:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 17:18:32 +0000 (UTC) Cc: 22941@debbugs.gnu.org To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 18:18:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aeQhZ-0006eX-7W for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 18:18:13 +0100 Original-Received: from localhost ([::1]:56819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQhY-000230-Kz for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 12:18:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQhS-000203-8a for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:18:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeQhO-0001Xc-5W for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:18:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQhO-0001XY-2E for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aeQhN-0002Ef-NS for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?I=C3=B1igo?= Serna Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Mar 2016 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22941 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 22941-submit@debbugs.gnu.org id=B22941.14577166548561 (code B ref 22941); Fri, 11 Mar 2016 17:18:01 +0000 Original-Received: (at 22941) by debbugs.gnu.org; 11 Mar 2016 17:17:34 +0000 Original-Received: from localhost ([127.0.0.1]:45353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeQgw-0002E0-4F for submit@debbugs.gnu.org; Fri, 11 Mar 2016 12:17:34 -0500 Original-Received: from mail-wm0-f42.google.com ([74.125.82.42]:38911) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeQgu-0002Dn-Kp for 22941@debbugs.gnu.org; Fri, 11 Mar 2016 12:17:32 -0500 Original-Received: by mail-wm0-f42.google.com with SMTP id l68so26070391wml.1 for <22941@debbugs.gnu.org>; Fri, 11 Mar 2016 09:17:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=YWkwP20l57dtz8qwta64ixlLy/27n7QosS0OiC0J23E=; b=khLx1Apo70eeLqUt4Y6Tnts6onL/ybvRvic3e+QW8CSifI0JRRQEbJlVQHXCFgBYX+ sOTwWv9DxthhiISYEnb7iQUrjZzv5Wv8wIgAN6MhllsHFcg7pCq7nVUOyKES5v/3FmOD SjmuTsAASo3C/cMNuxoye0iwUP95anTsjcBhNIXGzzVsMIcWKv1ak5eGtumrDCqOH7LN e1rnBn3S3XKWN7cCNnrA14Zj3Fg7bQTMwpGTWzUInyJ9HXE5Gi5UP7qQs8cWuaYJLbrl YsYM4rVKrSsBLz/B2l6HDMHQAsa18QR28AnTdWJcOOoB8/SUG/s2MWgWlC4LAR5PRnVm 3DzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=YWkwP20l57dtz8qwta64ixlLy/27n7QosS0OiC0J23E=; b=Fq7m/TJZ3EaWUqHnrMS9kctxX/+fjJQwQlyh+bX3GgZVsfbRUOUeUZRrR6aC/7oglF U4TnGVmGc2R5D8nBxHCta8Ex3jtjt407DeuuTO7JAPecHP1BzWJTSbVVYqjeKFjhMEG3 H7uVAmkqQHxmbIbnATcT1lKxHr3kvUvaD8cHJhQwmqfAQYjQdKnmC2NlDiIeiiEDdvN3 lEp2Ki8oORVo7uXgPo48/akvxvlzOPXPavVtaBn5kpqO+p+Ru3OETYnDHaRjcdn/CKqB qAeYYO0UFTbxWaTU8vAKkBTfIFEYtV8SOV8MrldxVhJlDm1d+mbiQiQqiR3JHqn6hWiP uTDw== X-Gm-Message-State: AD7BkJLnpt/MdAf9mR66DOGkmZvUvhQlYR2aq2eb7MzDiMSPUuUSg3FGVO+7Xe220cGBmw== X-Received: by 10.194.115.35 with SMTP id jl3mr10953809wjb.76.1457716646770; Fri, 11 Mar 2016 09:17:26 -0800 (PST) Original-Received: from inigo.katxi.org.gmail.com (62.57.74.108.dyn.user.ono.com. [62.57.74.108]) by smtp.gmail.com with ESMTPSA id v188sm3194605wmv.3.2016.03.11.09.17.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Mar 2016 09:17:25 -0800 (PST) User-agent: mu4e 0.9.16; emacs 25.1.50.3 In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114765 Archived-At: Hello, and thanks for your answer. Daiki Ueno writes: > [...] > > This behavior is intended, if the key was created with gpg2. GnuPG 2.1 > removed support for secring.gpg, which was used by pre-2.1 versions. > That is one of the reasons we switched the default to "gpg2". Sorry, I don't understand. The key was generated with gpg v1.x, and I want to continue using gpg v1.x within emacs. From cli, I can see the correct key with "gpg -K". I understand from the doc you cited that now it is not possible to use gpg v1.x keys with gpg v2.1+ and vice versa. But in my case I want to use a v1.x key with gpg v1.x. And that's why I set `epg-pgp-program' to "gpg" instead of using default "gpg2". Am I missing something? Thanks in advance, Iñigo Serna > tag 22941 notabug > close 22941 > stop > > Iñigo Serna writes: > >> Since a couple of months ago emacs 25.0.x (last tested as 2016/03/08 >> from git master) can't open encrypted files (using symmetric keys), as >> epa can't find secret keys from gpg. >> >> This is the error message I get: >> """ >> Error while decrypting with "gpg": >> >> gpg: encrypted with 2048-bit RSA key, ID C0ED9C8489B28C43, created 2016-01-12 >> "Iñigo Serna (XXX.YY) " >> gpg: decryption failed: No secret key >> """ >> >> I use gpg (not gpg2) so I added '(setq epg-gpg-program "gpg")' to my >> configuration as new epa defaults to gpg2 when I've run "emacs -Q -nw". >> >> `epa-list-secret-keys` does not find any keys. >> >> This same configuration works ok with 24.5.1 (from Fedora 23 x86_64), and >> even `epa-list-secret-keys` shows the private keys correctly. > > This behavior is intended, if the key was created with gpg2. GnuPG 2.1 > removed support for secring.gpg, which was used by pre-2.1 versions. > That is one of the reasons we switched the default to "gpg2". > > See doc/whats-new-in-2.1.txt in GnuPG: > > 1.1 Removal of the secret keyring > ───────────────────────────────── > [...] > 2.1. However, any change to the private keys using the new /gpg/ will > not show up when using pre-2.1 versions of GnuPG and vice versa. > > Regards, -- Iñigo Serna