unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Collin J. Doering" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 70688@debbugs.gnu.org
Subject: bug#70688: 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	[thread overview]
Message-ID: <87sez2l1mx.fsf@rekahsoft.ca> (raw)

[-- 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 --]

             reply	other threads:[~2024-05-01  2:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01  2:14 Collin J. Doering via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sez2l1mx.fsf@rekahsoft.ca \
    --to=bug-gnu-emacs@gnu.org \
    --cc=70688@debbugs.gnu.org \
    --cc=collin@rekahsoft.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).