blob: 87d4a0c61cf1c782b4612dbd6b70087aef57f048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
;;----------------------------------------------------------------------------
;; Security. Check https://ogbe.net/emacsconfig.html
;;----------------------------------------------------------------------------
(setq tls-checktrust t)
(setq gnutls-verify-error t)
(let ((trustfile "/etc/ssl/cert.pem"))
(setq tls-program
`(,(format "gnutls-cli --x509cafile %s -p %%p %%h" trustfile)
,(format "openssl s_client -connect %%h:%%p -CAfile %s -no_ssl2 -ign_eof" trustfile)))
(setq gnutls-trustfiles (list trustfile)))
(provide 'init-security)
|