[Misc] Add only certificates if they look like some
This commit is contained in:
parent
5747361df6
commit
02424db2fe
2
init.el
2
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"
|
||||
|
|
Loading…
Reference in New Issue