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 //go:build dragonfly || freebsd || netbsd || openbsd 6 // +build dragonfly freebsd netbsd openbsd 7 8 package x509 9 10 // Possible certificate files; stop after finding one. 11 var certFiles = []string{ 12 "/usr/local/etc/ssl/cert.pem", // FreeBSD 13 "/etc/ssl/cert.pem", // OpenBSD 14 "/usr/local/share/certs/ca-root-nss.crt", // DragonFly 15 "/etc/openssl/certs/ca-certificates.crt", // NetBSD 16 } 17 18 // Possible directories with certificate files; stop after successfully 19 // reading at least one file from a directory. 20 var certDirectories = []string{ 21 "/etc/ssl/certs", // FreeBSD 12.2+ 22 "/usr/local/share/certs", // FreeBSD 23 "/etc/openssl/certs", // NetBSD 24 } 25