Add new FreeBSD 12.2+ trusted certificate folder

Up to FreeBSD 12.1 the package ca_root_nss was needed in order to
have certificates under /usr/local/share/certs as the base system
didn't have a system-wide trusted certificate store.

This has been created in FreeBSD 12.2 in /etc/ssl/certs:
https://svnweb.freebsd.org/base?view=revision&revision=357082

Fixes #46284
This commit is contained in:
Lapo Luchini 2021-05-19 23:29:07 +02:00
parent 6c1c055d1e
commit 0fa5542ea3
No known key found for this signature in database
GPG key ID: AE3AE4564225519A

View file

@ -18,6 +18,7 @@ var certFiles = []string{
// Possible directories with certificate files; stop after successfully
// reading at least one file from a directory.
var certDirectories = []string{
"/etc/ssl/certs", // FreeBSD 12.2+
"/usr/local/share/certs", // FreeBSD
"/etc/openssl/certs", // NetBSD
}