From 8f8f115ad2b7bf024e670ec656e7f478839d2680 Mon Sep 17 00:00:00 2001 From: fpi Date: Sun, 20 Dec 2020 13:33:00 +0100 Subject: [WIP] Add basis of s/mime email encryption --- emacs-init.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/emacs-init.org b/emacs-init.org index b0cb36f..9f82340 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -5266,6 +5266,28 @@ I use =msmtp= to send mail. (add-to-list 'mm-inline-media-tests '("application/x-wine-extension-cir" mm-display-spice-inline identity)) (add-to-list 'mm-inlined-types "application/x-wine-extension-cir")) #+end_src +**** 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") +#+end_src + + + +#+begin_src emacs-lisp :tangle no +(use-package smime + :custom + (smime-CA-directory "~/certs/trusted") + (smime-certificate-directory "~/certs") + ) +#+end_src *** MUA/Notmuch After using =mu4e= as my mail user agent for a while I switched to -- cgit v1.2.3