1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:04:49 -07:00

crypto/x509: add /etc/ssl/certs to certificate directories

Fixes #12139.

Change-Id: Ied760ac37e2fc21ef951ae872136dc3bfd49bf9f
Reviewed-on: https://go-review.googlesource.com/16671
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Shenghou Ma 2015-11-04 21:20:33 -05:00 committed by Minux Ma
parent 9496815598
commit 61ca7e5ccf

View File

@ -11,6 +11,7 @@ import "io/ioutil"
// Possible directories with certificate files; stop after successfully // Possible directories with certificate files; stop after successfully
// reading at least one file from a directory. // reading at least one file from a directory.
var certDirectories = []string{ var certDirectories = []string{
"/etc/ssl/certs", // SLES10/SLES11, https://golang.org/issue/12139
"/system/etc/security/cacerts", // Android "/system/etc/security/cacerts", // Android
} }