unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70688: 29.3; epa-file-encrypt-to does not allow selecting subkeys by id using <subkey>! syntax supported by gpg itself
@ 2024-05-01  2:14 Collin J. Doering via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-05-01  2:20 ` bug#70688: (no subject) Collin J. Doering via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-05-01 12:10 ` bug#70688: 29.3; epa-file-encrypt-to does not allow selecting subkeys by id using <subkey>! syntax supported by gpg itself Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Collin J. Doering via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-05-01  2:14 UTC (permalink / raw)
  To: 70688

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-01 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01  2:14 bug#70688: 29.3; epa-file-encrypt-to does not allow selecting subkeys by id using <subkey>! syntax supported by gpg itself Collin J. Doering via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-01  2:20 ` bug#70688: (no subject) Collin J. Doering via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-01 12:10 ` bug#70688: 29.3; epa-file-encrypt-to does not allow selecting subkeys by id using <subkey>! syntax supported by gpg itself Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).