mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 5 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue