all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Klaus Zeitler <klaus.zeitler@nokia.com>
To: <help-gnu-emacs@gnu.org>
Subject: Gnus decrypt mail works with openssl but fails with epg
Date: Tue, 7 Jun 2016 13:33:41 +0200	[thread overview]
Message-ID: <q5gportutbe.fsf@alcatel-lucent.com> (raw)

Hello,
I have an odd problem with encryption. I send myself a signed and
encrypted email with something like:
 openssl smime -sign -in test.txt -signer CertAndKey.pem -text | openssl smime -encrypt -from klaus.zeitler@alcatel-lucent.com -to klaus.zeitler@alcatel-lucent.com -subject "Signed and Encrypted message" CertAndKey.pem | sendmail klaus.zeitler@alcatel-lucent.com

I can decrypt/verify/read this mail with Gnus only when I use
 (setq mml-smime-use 'openssl)
but not with
 (setq mml-smime-use 'epg)
There I see in the EPG debug buffer:
--- snip ---
GPG_AGENT_INFO=/tmp/gpg-0A12Kv/S.gpg-agent:5003:1
/usr/bin/gpgsm --no-tty --status-fd 1 --yes --output /tmp/epg-output1248i8M --decrypt -- /tmp/epg-input1248VyG
[GNUPG:] ERROR decrypt.algorithm 50331732 1.2.840.113549.3.2
[GNUPG:] DECRYPTION_FAILED
--- snip ---

BTW I can also read this email with Thunderbird.


When I send myself a signed+encrypted email from Thunderbird, I see in
the EPG debug buffer:
--- snip ---
GPG_AGENT_INFO=/tmp/gpg-0A12Kv/S.gpg-agent:5003:1
/usr/bin/gpgsm --no-tty --status-fd 1 --yes --output /tmp/epg-output1248JUr --decrypt -- /tmp/epg-input12488Jl
[GNUPG:] ENC_TO FFFFFFFFE1EA1359 0 0
[GNUPG:] DECRYPTION_OKAY
--- snip ---


So it seems as if there's something wrong with my settings for EPG,
but I have no idea what. I only have these 4 lines in my init file
for EPG usage:
 (require 'epa-file)
 (epa-file-enable)
 (setq epg-debug t)
 (setq mml-smime-use 'epg)


Maybe the error above:
[GNUPG:] ERROR decrypt.algorithm 50331732 1.2.840.113549.3.2
gives a hint to what's wrong in my setup. 


Klaus



                 reply	other threads:[~2016-06-07 11:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=q5gportutbe.fsf@alcatel-lucent.com \
    --to=klaus.zeitler@nokia.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.