github.com/geraldss/go/src@v0.0.0-20210511222824-ac7d0ebfc235/crypto/x509/root_bsd.go (about)

     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  // +build dragonfly freebsd netbsd openbsd
     6  
     7  package x509
     8  
     9  // Possible certificate files; stop after finding one.
    10  var certFiles = []string{
    11  	"/usr/local/etc/ssl/cert.pem",            // FreeBSD
    12  	"/etc/ssl/cert.pem",                      // OpenBSD
    13  	"/usr/local/share/certs/ca-root-nss.crt", // DragonFly
    14  	"/etc/openssl/certs/ca-certificates.crt", // NetBSD
    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  	"/usr/local/share/certs", // FreeBSD
    21  	"/etc/openssl/certs",     // NetBSD
    22  }