aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshish SHUKLA2015-12-24 18:54:41 +0100
committerLars Ingebrigtsen2015-12-24 18:54:41 +0100
commit60c0f1a18ad88d6dc1a8f4ee5d9d18940eaeb6f7 (patch)
tree33ef6c71baafa3b8a1e965cdb89180c7c711de38
parent45ebbc0301c8514a5f3215f45981c787cb26f915 (diff)
downloademacs-60c0f1a18ad88d6dc1a8f4ee5d9d18940eaeb6f7.tar.gz
emacs-60c0f1a18ad88d6dc1a8f4ee5d9d18940eaeb6f7.zip
Add FreeBSD cert bundle
* doc/misc/emacs-gnutls.texi (Help For Users): Document FreeBSD bundle. * lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.
-rw-r--r--doc/misc/emacs-gnutls.texi17
-rw-r--r--lisp/net/gnutls.el9
2 files changed, 14 insertions, 12 deletions
diff --git a/doc/misc/emacs-gnutls.texi b/doc/misc/emacs-gnutls.texi
index 4f6ef010ef3..d951e2fde32 100644
--- a/doc/misc/emacs-gnutls.texi
+++ b/doc/misc/emacs-gnutls.texi
@@ -123,14 +123,15 @@ The @code{gnutls-trustfiles} variable is a list of trustfiles
123host name (although @code{gnutls-negotiate} supports a trustfile per 123host name (although @code{gnutls-negotiate} supports a trustfile per
124connection so it could be done if needed). The trustfiles can be in 124connection so it could be done if needed). The trustfiles can be in
125PEM or DER format and examples can be found in most Unix 125PEM or DER format and examples can be found in most Unix
126distributions. By default four locations are tried in this order: 126distributions. By default the following locations are tried in this
127@file{/etc/ssl/certs/ca-certificates.crt} for Debian, Ubuntu, Gentoo 127order: @file{/etc/ssl/certs/ca-certificates.crt} for Debian, Ubuntu,
128and Arch Linux; @file{/etc/pki/tls/certs/ca-bundle.crt} for Fedora 128Gentoo and Arch Linux; @file{/etc/pki/tls/certs/ca-bundle.crt} for
129and RHEL; @file{/etc/ssl/ca-bundle.pem} for Suse; 129Fedora and RHEL; @file{/etc/ssl/ca-bundle.pem} for Suse;
130@file{/usr/ssl/certs/ca-bundle.crt} for Cygwin. You can easily 130@file{/usr/ssl/certs/ca-bundle.crt} for Cygwin;
131customize @code{gnutls-trustfiles} to be something else, but let us 131@file{/usr/local/share/certs/ca-root-nss.crt} for FreeBSD. You can
132know if you do, so we can make the change to benefit the other users 132easily customize @code{gnutls-trustfiles} to be something else, but
133of that platform. 133let us know if you do, so we can make the change to benefit the other
134users of that platform.
134@end defvar 135@end defvar
135 136
136@defvar gnutls-verify-error 137@defvar gnutls-verify-error
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el
index 479c9a579f3..ccaef8aafac 100644
--- a/lisp/net/gnutls.el
+++ b/lisp/net/gnutls.el
@@ -67,10 +67,11 @@ set this variable to \"normal:-dhe-rsa\"."
67 67
68(defcustom gnutls-trustfiles 68(defcustom gnutls-trustfiles
69 '( 69 '(
70 "/etc/ssl/certs/ca-certificates.crt" ; Debian, Ubuntu, Gentoo and Arch Linux 70 "/etc/ssl/certs/ca-certificates.crt" ; Debian, Ubuntu, Gentoo and Arch Linux
71 "/etc/pki/tls/certs/ca-bundle.crt" ; Fedora and RHEL 71 "/etc/pki/tls/certs/ca-bundle.crt" ; Fedora and RHEL
72 "/etc/ssl/ca-bundle.pem" ; Suse 72 "/etc/ssl/ca-bundle.pem" ; Suse
73 "/usr/ssl/certs/ca-bundle.crt" ; Cygwin 73 "/usr/ssl/certs/ca-bundle.crt" ; Cygwin
74 "/usr/local/share/certs/ca-root-nss.crt" ; FreeBSD
74 ) 75 )
75 "List of CA bundle location filenames or a function returning said list. 76 "List of CA bundle location filenames or a function returning said list.
76The files may be in PEM or DER format, as per the GnuTLS documentation. 77The files may be in PEM or DER format, as per the GnuTLS documentation.