Skip to content

Commit ce9a3b7

Browse files
lapo-luchiniFiloSottile
authored andcommitted
crypto/x509: add new FreeBSD 12.2+ trusted certificate folder
Up to FreeBSD 12.1 the package ca_root_nss was needed in order to have certificates under /usr/local/share/certs as the base system didn't have a system trusted certificate store. This has been fixed in FreeBSD 12.2 using /etc/ssl/certs: https://svnweb.freebsd.org/base?view=revision&revision=357082 Fixes #46284 Change-Id: I912b1bacc30cdf20d19e3ef9d09b69bb8055ff49 GitHub-Last-Rev: 0fa5542 GitHub-Pull-Request: #46276 Reviewed-on: https://go-review.googlesource.com/c/go/+/321190 Reviewed-by: Filippo Valsorda <[email protected]> Run-TryBot: Filippo Valsorda <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Tobias Klauser <[email protected]>
1 parent f8be906 commit ce9a3b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crypto/x509/root_bsd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var certFiles = []string{
1818
// Possible directories with certificate files; stop after successfully
1919
// reading at least one file from a directory.
2020
var certDirectories = []string{
21+
"/etc/ssl/certs", // FreeBSD 12.2+
2122
"/usr/local/share/certs", // FreeBSD
2223
"/etc/openssl/certs", // NetBSD
2324
}

0 commit comments

Comments
 (0)