github.com/emmansun/gmsm@v0.29.1/smx509/root_bsd.go (about)

     1  //go:build dragonfly || freebsd || netbsd || openbsd
     2  
     3  package smx509
     4  
     5  // Possible certificate files; stop after finding one.
     6  var certFiles = []string{
     7  	"/usr/local/etc/ssl/cert.pem",            // FreeBSD
     8  	"/etc/ssl/cert.pem",                      // OpenBSD
     9  	"/usr/local/share/certs/ca-root-nss.crt", // DragonFly
    10  	"/etc/openssl/certs/ca-certificates.crt", // NetBSD
    11  }
    12  
    13  // Possible directories with certificate files; all will be read.
    14  var certDirectories = []string{
    15  	"/etc/ssl/certs",         // FreeBSD 12.2+
    16  	"/usr/local/share/certs", // FreeBSD
    17  	"/etc/openssl/certs",     // NetBSD
    18  }