GNU bug report logs - #70688
29.3; epa-file-encrypt-to does not allow selecting subkeys by id using <subkey>! syntax supported by gpg itself

Previous Next

Package: emacs;

Reported by: "Collin J. Doering" <collin <at> rekahsoft.ca>

Date: Wed, 1 May 2024 02:15:02 UTC

Severity: wishlist

Found in version 29.3

Full log


Message #11 received at 70688 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Collin J. Doering" <collin <at> rekahsoft.ca>
Cc: 70688 <at> debbugs.gnu.org
Subject: Re: bug#70688: 29.3;
 epa-file-encrypt-to does not allow selecting subkeys by id using
 <subkey>! syntax supported by gpg itself
Date: Wed, 01 May 2024 15:10:24 +0300
severity 70688 wishlist
thanks

> Date: Tue, 30 Apr 2024 22:14:14 -0400
> From:  "Collin J. Doering" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> I was attempting to encrypt a file using multiple gpg subkeys, using the <subkey>! syntax supported by gpg. To do this, I had a file local variable in the 'file.gpg' I was editing that looked something like this:
> 
> --8<---------------cut here---------------start------------->8---
> # -*- epa-file-encrypt-to: ("subkey0!" "subkey1!" "subkey2!") -*-
> --8<---------------cut here---------------end--------------->8---
> 
> However, I found that this failed to select the subkeys, and would fall back to symmetric encryption. If I specify the subkeys without the '!' suffix, it ends up using the most recent subkey on the corresponding master.
> 
> This all to say, looking at the source, it appears this is expected behavior. It would be nice if explicitly specifying subkeys to use was supported.

Patches to add this missing feature are welcome.

(However, my reading of the documentation is that epa-file-encrypt-to
is about recipients of the file, not about gpg keys.)




This bug report was last modified 1 year and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.