Let's say I create a file with C-xC-f file.gpg
, then save it with C-xC-s. I get to this buffer:
Select recipients for encryption.
If no one is selected, symmetric encryption will be performed.
- `M-x epa-mark-key' to mark a key on the line
- `M-x epa-unmark-key' to unmark a key on the line
[Cancel][OK]
u 372XXXXX Jane Doe <jane@doe.com>
u A4DXXXXX John Doe <john@doe.com>
and I mark 372XXXXX
as the recipient. Now I have a file.gpg
that's decryptable by 372XXXXX
's private key.
After a time I decide I want to add A4DXXXXX
to the recipients, so that it's decryptable by 372XXXXX
and A4DXXXXX
.
Is there any sane option except copy-pasting the full contents, creating a new file and then marking the keys anew? I found epa-file-select-keys
but that apparently only opens the selection buffer without doing any actual change to the file, so when I clear the GPG cache and reload file with C-xC-v I only get prompted for the first marked key (372XXXXX
).
When I mark 2+ keys (372XXXXX
+ A4DXXXXX
) in the beginning (from scratch when creating the file, no re-encryption), it'll ask for 2+ marked keys just fine.