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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Collin J. Doering" <collin <at> rekahsoft.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.3; epa-file-encrypt-to does not allow selecting subkeys by id
 using <subkey>! syntax supported by gpg itself
Date: Tue, 30 Apr 2024 22:14:14 -0400
[Message part 1 (text/plain, inline)]
Hi,

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.

Much thanks!

-- 

Collin J. Doering

http://rekahsoft.ca
http://blog.rekahsoft.ca
http://git.rekahsoft.ca
[signature.asc (application/pgp-signature, inline)]

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

Previous Next


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