2017-04-10 11:32:00 +00:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2022-10-27 18:55:19 +00:00
|
|
|
//go:build dragonfly || freebsd || netbsd || openbsd
|
2017-04-10 11:32:00 +00:00
|
|
|
|
|
|
|
package x509
|
|
|
|
|
|
|
|
// Possible certificate files; stop after finding one.
|
|
|
|
var certFiles = []string{
|
2018-12-28 15:30:48 +00:00
|
|
|
"/usr/local/etc/ssl/cert.pem", // FreeBSD
|
2017-04-10 11:32:00 +00:00
|
|
|
"/etc/ssl/cert.pem", // OpenBSD
|
2018-12-28 15:30:48 +00:00
|
|
|
"/usr/local/share/certs/ca-root-nss.crt", // DragonFly
|
2017-04-10 11:32:00 +00:00
|
|
|
"/etc/openssl/certs/ca-certificates.crt", // NetBSD
|
|
|
|
}
|
2022-10-27 18:55:19 +00:00
|
|
|
|
|
|
|
// Possible directories with certificate files; all will be read.
|
|
|
|
var certDirectories = []string{
|
|
|
|
"/etc/ssl/certs", // FreeBSD 12.2+
|
|
|
|
"/usr/local/share/certs", // FreeBSD
|
|
|
|
"/etc/openssl/certs", // NetBSD
|
|
|
|
}
|