HomeFreeBSD

libfetch: don't rely on ca_root_nss for certificate validation

Description

libfetch: don't rely on ca_root_nss for certificate validation

Before certctl(8), there was no system trust store, and libfetch
relied on the CA certificate bundle from the ca_root_nss port to
verify peers.

We now have a system trust store and a reliable mechanism for
manipulating it (to explicitly add, remove, or revoke certificates),
but if ca_root_nss is installed, libfetch will still prefer that to
the system trust store.

With this change, unless explicitly overridden, libfetch will rely on
OpenSSL to pick up the default system trust store.

PR: 256902
MFC after: 3 days
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D42059

Details

Provenance
michaeloAuthored on Oct 3 2023, 5:53 AM
desCommitted on Oct 3 2023, 5:53 AM
Reviewer
kevans
Differential Revision
D42059: libfetch: don't rely on ca_root_nss for certificate validation
Parents
rG0afcac3e37e9: SIGSYS: add tests
Branches
Unknown
Tags
Unknown