Black Lives Matter. Support the Equal Justice Initiative.

Source file src/crypto/x509/root_linux.go

Documentation: crypto/x509

     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; stop after successfully
    18  // reading at least one file from a directory.
    19  var certDirectories = []string{
    20  	"/etc/ssl/certs",               // SLES10/SLES11, https://golang.org/issue/12139
    21  	"/etc/pki/tls/certs",           // Fedora/RHEL
    22  	"/system/etc/security/cacerts", // Android
    23  }
    24  

View as plain text