From 02424db2fe5261eee9e1c142948aeefde739a7db Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 28 Oct 2017 14:31:31 +0200 Subject: [PATCH] [Misc] Add only certificates if they look like some --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 4a7d271..f7b5ab0 100644 --- a/init.el +++ b/init.el @@ -657,7 +657,7 @@ to a directory, add all certificate files in it to Certificates are assumed to be of the form *.crt." (set symbol new-value) (when (file-directory-p new-value) - (dolist (cert-file (directory-files new-value)) + (dolist (cert-file (directory-files new-value t "*.crt$")) (add-to-list 'gnutls-trustfiles cert-file)))) (defcustom db/cert-file-directory "~/.local/etc/certs"