From 68c583995c533679decd783dc8006a9d887b6051 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 18 Jan 2012 10:03:00 -0800 Subject: [PATCH] crypto/tls: add FreeBSD root certificate location Fixes #2721. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5532090 --- root_unix.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/root_unix.go b/root_unix.go index 5bbd982..acaf3dd 100644 --- a/root_unix.go +++ b/root_unix.go @@ -13,10 +13,11 @@ import ( // Possible certificate files; stop after finding one. var certFiles = []string{ - "/etc/ssl/certs/ca-certificates.crt", // Linux etc - "/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL - "/etc/ssl/ca-bundle.pem", // OpenSUSE - "/etc/ssl/cert.pem", // OpenBSD + "/etc/ssl/certs/ca-certificates.crt", // Linux etc + "/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL + "/etc/ssl/ca-bundle.pem", // OpenSUSE + "/etc/ssl/cert.pem", // OpenBSD + "/usr/local/share/certs/ca-root-nss.crt", // FreeBSD } func initDefaultRoots() {