Source file src/crypto/x509/root_linux.go

     1  // Copyright 2015 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package x509
     6  
     7  // Possible certificate files; stop after finding one.
     8  var certFiles = []string{
     9  	"/etc/ssl/certs/ca-certificates.crt",                // Debian/Ubuntu/Gentoo etc.
    10  	"/etc/pki/tls/certs/ca-bundle.crt",                  // Fedora/RHEL 6
    11  	"/etc/ssl/ca-bundle.pem",                            // OpenSUSE
    12  	"/etc/pki/tls/cacert.pem",                           // OpenELEC
    13  	"/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", // CentOS/RHEL 7
    14  	"/etc/ssl/cert.pem",                                 // Alpine Linux
    15  }
    16  
    17  // Possible directories with certificate files; all will be read.
    18  var certDirectories = []string{
    19  	"/etc/ssl/certs",               // SLES10/SLES11, https://golang.org/issue/12139
    20  	"/etc/pki/tls/certs",           // Fedora/RHEL
    21  	"/system/etc/security/cacerts", // Android
    22  }
    23  

View as plain text