mirror of
https://github.com/golang/go
synced 2024-11-25 16:07:56 -07:00
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
dcc5fe1e20
commit
18de11479c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user