unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* epa and keys
@ 2020-05-11  9:54 Colin Baxter
  2020-05-11 14:23 ` Robert Pluim
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Baxter @ 2020-05-11  9:54 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I want to sign an email (mail mode, not message mode) using M-x
epa-mail-sign <RET>.

I would have expected to have been presented with a list of keys from
which to choose, but, instead, I am asked to enter my password for the
first key in my key-ring. (The first key is effectively the default, if
no default key is explicitly set). Unfortunately, I want to sign with
another key in my key-ring.

How can I force epa to present me with a choice of keys rather than the
first? I am using gpg (GnuPG) 2.0.26.

Thanks.

Best wishes,

Colin.

-- 
Colin Baxter
URL: http://www.Colin-Baxter.com




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

* Re: epa and keys
  2020-05-11  9:54 epa and keys Colin Baxter
@ 2020-05-11 14:23 ` Robert Pluim
  2020-05-11 14:48   ` Colin Baxter
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Pluim @ 2020-05-11 14:23 UTC (permalink / raw)
  To: Colin Baxter; +Cc: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

>>>>> On Mon, 11 May 2020 10:54:53 +0100, Colin Baxter <m43cap@yandex.com> said:

    Colin> Hello,
    Colin> I want to sign an email (mail mode, not message mode) using M-x
    Colin> epa-mail-sign <RET>.

    Colin> I would have expected to have been presented with a list of keys from
    Colin> which to choose, but, instead, I am asked to enter my password for the
    Colin> first key in my key-ring. (The first key is effectively the default, if
    Colin> no default key is explicitly set). Unfortunately, I want to sign with
    Colin> another key in my key-ring.

    Colin> How can I force epa to present me with a choice of keys rather than the
    Colin> first? I am using gpg (GnuPG) 2.0.26.

C-u M-x epa-mail-sign

should do that, which is not described in the docstring nor in the
manual. Thereʼs an epa-mail-mode minor mode as well with more
convenient bindings for the signing and encrypting commands.

Iʼd recommend message-mode and mml-secure-sign-pgp, but that has other
annoying bugs in its unconfigured state that I haven't fixed yet.

Robert
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCAAvFiEEq83Vx/IYGRGbZc3zPXrkx5EPYUAFAl65X84RHHJwbHVpbUBn
bWFpbC5jb20ACgkQPXrkx5EPYUB4XxAAuuVuPWOzyi8EYa9t8EWx+V8QI9oB0N7G
vfqpyqKgETUZUCpTyuWhUFTZ/TJZYZ5DKUXIOu6F4Bdsex9+Au//IfOMdz+xqBzk
Mu82mkj1svdBljuabAKUmnY/Pm6PYINZyNd9J8pZEJk3lagJGOHG9lA8SSwp2Z0G
U8AGuHAp2iCbyNbBqw0pflKItih7amD7maKaiiCHW0NWVlv2oi4LTV24UOWCoee7
Q8sxpsdRGY5iRPwH5UixT8hLns7vKY279LvnfPxHzDM3uF9muSQReceB5DbfY4xK
C5nyVLTJyPqgoeaBNcvAJLtZWpZlufyF68Ko8jqDOv3UXvaYkoq1HvAs8OzFCvXO
aW+xLuFrIc/m/02RPiUKMN+V/rilbpfWo7Nf1CEttCWrprz9OdFI784dQ5A9H/bP
F2YhEKgQklLM8EyHM715GVvITytHgDNTCVdABeuN9XlFgEkaS8PeT3gyomPapJLD
6a36ZKJGJycH8fzgxG5D+c8H1gZj2np4WOumcKDB/GZsHhwCJQO0VdTRo8CLa179
mRhYMOCagbGsx+LroToqysnZEMDilOoZzNTckQud6PQ8ZiKDv2NljN4g8jQbFBT1
5lIIePlGIRRLYUItNbPMxLAq7tMooDsYivrxqV/jISZhRiyNE+mYVf+Eba7kcK9W
oGLxcJpRMTg=
=0Y9z
-----END PGP SIGNATURE-----



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

* Re: epa and keys
  2020-05-11 14:23 ` Robert Pluim
@ 2020-05-11 14:48   ` Colin Baxter
  2020-05-12  7:32     ` Robert Pluim
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Baxter @ 2020-05-11 14:48 UTC (permalink / raw)
  To: Robert Pluim; +Cc: help-gnu-emacs

Dear Robert
>>>>> Robert Pluim <rpluim@gmail.com> writes:

>>>>> On Mon, 11 May 2020 10:54:53 +0100, Colin Baxter <m43cap@yandex.com> said:
    Colin> Hello, I want to sign an email (mail mode, not message mode)
    Colin> using M-x epa-mail-sign <RET>.

    Colin> I would have expected to have been presented with a list of
    Colin> keys from which to choose, but, instead, I am asked to enter
    Colin> my password for the first key in my key-ring. (The first key
    Colin> is effectively the default, if no default key is explicitly
    Colin> set). Unfortunately, I want to sign with another key in my
    Colin> key-ring.

    Colin> How can I force epa to present me with a choice of keys
    Colin> rather than the first? I am using gpg (GnuPG) 2.0.26.

    > C-u M-x epa-mail-sign

Universal argument, excellent. That worked!

    > should do that, which is not described in the docstring nor in the
    > manual.

Not telling anyone - now that's sneaky:-)

    > Iʼd recommend message-mode and mml-secure-sign-pgp

Yes, I normally use message mode, but, because of the way I have things
configured, sometimes I have to use mail.

Thanks again.

Best wishes, Colin.

-- 
Colin Baxter
URL: http://www.Colin-Baxter.com



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

* Re: epa and keys
  2020-05-11 14:48   ` Colin Baxter
@ 2020-05-12  7:32     ` Robert Pluim
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Pluim @ 2020-05-12  7:32 UTC (permalink / raw)
  To: Colin Baxter; +Cc: help-gnu-emacs

>>>>> On Mon, 11 May 2020 15:48:22 +0100, Colin Baxter <m43cap@yandex.com> said:
    >> should do that, which is not described in the docstring nor in the
    >> manual.

    Colin> Not telling anyone - now that's sneaky:-)

Iʼve put it on my to-fix list.

    >> Iʼd recommend message-mode and mml-secure-sign-pgp

    Colin> Yes, I normally use message mode, but, because of the way I have things
    Colin> configured, sometimes I have to use mail.

message-mode is supposed to be a replacement for mail-mode. Is there
something missing from it for your use-case?

Robert



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

end of thread, other threads:[~2020-05-12  7:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-11  9:54 epa and keys Colin Baxter
2020-05-11 14:23 ` Robert Pluim
2020-05-11 14:48   ` Colin Baxter
2020-05-12  7:32     ` Robert Pluim

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).