diff options
author | Jesús <heckyel@hyperbola.info> | 2019-01-22 15:45:41 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-01-22 15:45:41 -0500 |
commit | ced0fe8f9ef7cd16ade900bb34393c627f6d0c69 (patch) | |
tree | 350d3a0cbb87b12a36c0dc12537c56a75a2668ae /modules/init-security.el | |
parent | d0f44d85466d7211d54e30970f29815842ff4180 (diff) | |
download | emacs-personal-ced0fe8f9ef7cd16ade900bb34393c627f6d0c69.tar.lz emacs-personal-ced0fe8f9ef7cd16ade900bb34393c627f6d0c69.tar.xz emacs-personal-ced0fe8f9ef7cd16ade900bb34393c627f6d0c69.zip |
Change directory lisp/ to modules/
FS #2
Diffstat (limited to 'modules/init-security.el')
-rw-r--r-- | modules/init-security.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/init-security.el b/modules/init-security.el new file mode 100644 index 0000000..68b1eb6 --- /dev/null +++ b/modules/init-security.el @@ -0,0 +1,22 @@ +;;; init-security.el --- .Emacs Configuration -*- lexical-binding: t -*- +;;; Commentary: +;; + +;;; Code: +;;--------------------------------------------------------------------------------------------- +;; Security. Check https://web.archive.org/web/20170413150436/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) + +;; Local Variables: +;; byte-compile-warnings: (not free-vars) +;; End: +;;; init-security.el ends here |