Source file
src/crypto/x509/root_linux.go
1
2
3
4
5 package x509
6
7 import "internal/goos"
8
9
10 var certFiles = []string{
11 "/etc/ssl/certs/ca-certificates.crt",
12 "/etc/pki/tls/certs/ca-bundle.crt",
13 "/etc/ssl/ca-bundle.pem",
14 "/etc/pki/tls/cacert.pem",
15 "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem",
16 "/etc/ssl/cert.pem",
17 }
18
19
20 var certDirectories = []string{
21 "/etc/ssl/certs",
22 "/etc/pki/tls/certs",
23 }
24
25 func init() {
26 if goos.IsAndroid == 1 {
27 certDirectories = append(certDirectories,
28 "/system/etc/security/cacerts",
29 "/data/misc/keychain/certs-added",
30 )
31 }
32 }
33
View as plain text