crypto/tls: add FreeBSD root certificate location
Fixes #2721. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5532090
This commit is contained in:
parent
5fa105421a
commit
68c583995c
@ -13,10 +13,11 @@ import (
|
|||||||
|
|
||||||
// Possible certificate files; stop after finding one.
|
// Possible certificate files; stop after finding one.
|
||||||
var certFiles = []string{
|
var certFiles = []string{
|
||||||
"/etc/ssl/certs/ca-certificates.crt", // Linux etc
|
"/etc/ssl/certs/ca-certificates.crt", // Linux etc
|
||||||
"/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL
|
"/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL
|
||||||
"/etc/ssl/ca-bundle.pem", // OpenSUSE
|
"/etc/ssl/ca-bundle.pem", // OpenSUSE
|
||||||
"/etc/ssl/cert.pem", // OpenBSD
|
"/etc/ssl/cert.pem", // OpenBSD
|
||||||
|
"/usr/local/share/certs/ca-root-nss.crt", // FreeBSD
|
||||||
}
|
}
|
||||||
|
|
||||||
func initDefaultRoots() {
|
func initDefaultRoots() {
|
||||||
|
Loading…
Reference in New Issue
Block a user