From e6c56302241ceef4621502be3d9e52f705e60649 Mon Sep 17 00:00:00 2001 From: fpi Date: Sun, 20 Feb 2022 18:27:08 +0100 Subject: Update smime configuration --- emacs-init.org | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'emacs-init.org') 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 -- cgit v1.2.3