summaryrefslogtreecommitdiff
path: root/emacs-init.org
diff options
context:
space:
mode:
authorfpi2022-02-20 18:27:08 +0100
committerfpi2022-03-17 14:42:15 +0100
commite6c56302241ceef4621502be3d9e52f705e60649 (patch)
tree1a5567395cbb221c65109700e407c7a669b09352 /emacs-init.org
parentAdd new device (diff)
Update smime configuration
Diffstat (limited to 'emacs-init.org')
-rw-r--r--emacs-init.org31
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