diff options
Diffstat (limited to '')
-rw-r--r-- | emacs-init.org | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/emacs-init.org b/emacs-init.org index a445d31..ddfb754 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -5363,25 +5363,36 @@ I use =msmtp= to send mail. **** S/MIME Mail signing and encrypting with S/MIME needs a =gpgsm= setup and =smime.el=. -One can either use =EasyPG= or =OpenSSL= as external implementations. -#+begin_src emacs-lisp :tangle no -(mml-smime-use 'epg) -#+end_src - -#+begin_src emacs-lisp :tangle no -(mml-default-encrypt-method "smime") -(mml-default-sign-method "smime") +One can either use =EasyPG= or =OpenSSL= as external implementations. Still need to document these settings and packages better.. +#+begin_src emacs-lisp +(use-package epg + :custom (epg-pinentry-mode nil)) +(use-package mml-sec + :custom + (mml-default-encrypt-method "smime") + (mml-default-sign-method "smime") + (mml-secure-cache-passphrase nil) + (mml-secure-passphrase-cache-expiry 16) + ) +(use-package mml-smime + :custom + (mml-smime-use 'epg) + (mml-secure-smime-sign-with-sender t) +) #+end_src - - #+begin_src emacs-lisp :tangle no (use-package smime :custom (smime-CA-directory "~/certs/trusted") (smime-certificate-directory "~/certs") + (smime-keys private/smime-keys) ) #+end_src + +#+begin_src emacs-lisp :tangle no +(setq mm-sign-option 'guided) +#+end_src *** MUA/Notmuch After using =mu4e= as my mail user agent for a while I switched to |