mirror of
https://github.com/golang/go
synced 2024-11-22 06:14:39 -07:00
crypto/tls: more Unix root certificate locations
Hard work done by http://mercurial.selenic.com/wiki/CACertificates R=golang-dev, gri CC=golang-dev https://golang.org/cl/5276043
This commit is contained in:
parent
d1bafffa4b
commit
d65aaf24a6
@ -12,6 +12,8 @@ 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/ssl/ca-bundle.pem", // OpenSUSE
|
||||||
}
|
}
|
||||||
|
|
||||||
func initDefaultRoots() {
|
func initDefaultRoots() {
|
||||||
|
Loading…
Reference in New Issue
Block a user