Gottfried <[email protected]> writes:

>
> 2.
> I tried to send an encrypted mail through gnus
> and it worked.
> but I can´t open an encrypted email in gnus.
>
> may be the private key is missing.
> I can´t find my private keys, in order to copy it to the key folder, 
> which emacs shows.
>
> I read through the emacs manual and found:
>
> Mml Default Encrypt Method
> but no
> Mml Default Decrypt Method
>
>
> in opening an encrypted message, the one I sent in gnus,
> it asks me about decryption,
> but it fails to decrypt
>
> may be it means I have to set up something in my gnus.el
>
> then I found on the web:
> https://emacs.stackexchange.com/questions/19266/automatic-gpg-signature-verification-and-decryption-with-gnus
>
> ;;for encryption and decrytion of mails
> (setq mm-verify-option 'known)
> (setq mm-decrypt-option 'known)
>

Starting with Emacs 29, ‘setq’ should not be used to set
user options.  Instead, ‘setopt’ should be used.  Simply
replace "setq" with "setopt" in those expressions.

> and but not least in the gnus manual the security section,
> which gives me those variables.
>
> After putting them into my gnus.el
> I was not asked any more for decrypting my email
> but it did it automatically.
> but it failed.
>
> so what is missing?
> my private keys? or some settings?
>

1. Some other reader of this mailing list might recognize
what you are missing and be able to provide a simple
solution to the problem.

2. It is possible that you do not have Emacs/Gnus configured
correctly, but it also possible that you do not have gpg
configured correctly for encryption/decryption.  Because you
have these multiple layers (emacs using -> gnus using -> epa
using -> gpg), you might have to work through the multiple
layers to get decryption to work.

The Info manual for EasyPG Assistant (epa) can be read in
Emacs at (info "(epa)Top").  In its "Quick Start" section it
says:

  "However, to use the full set of EasyPG Assistant's
   functions you should have at least some minimum GnuPG
   configuration in place.

   John Michael Ashley's GNU Privacy Handbook, available
   online as part of the GnuPG user guides
   (https://gnupg.org/documentation/guides.html),
   provides an introduction to GnuPG use and configuration."

So, a place to start is to establish that you have a minimum
GnuPG configuration in place by reading Ashley’s handbook.
You can visit that website in Emacs (using ‘eww’) or using a
separate web browser.  At that website, there are links to
the handbook in multiple languages, including German (de):

   https://gnupg.org/gph/de/manual/index.html

Here are sections in the other possible layers that might
need to be configured:

  (info "(epa) Key management")
  (info "(message) Security")
  (info "(gnus) Security")

You can also check that "symmetric" encryption/decryption
works in Dired, which allows you to encrypt/decrypt files:

  (info "(emacs) Operating on Files")

-- 
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.

  • ... Gfp
    • ... Michael Heerdegen
      • ... gfp
        • ... Gottfried
          • ... tpeplt
            • ... Gottfried
              • ... tpeplt
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)

Reply via email to