Page MenuHomeFreeBSD

libfetch: don't rely on ca_root_nss for certificate validation
ClosedPublic

Authored by des on Oct 3 2023, 3:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 2:28 PM
Unknown Object (File)
Mon, Nov 25, 2:28 PM
Unknown Object (File)
Mon, Nov 25, 2:28 PM
Unknown Object (File)
Mon, Nov 25, 2:06 PM
Unknown Object (File)
Sat, Nov 23, 1:05 AM
Unknown Object (File)
Oct 6 2024, 9:40 PM
Unknown Object (File)
Oct 6 2024, 9:40 PM
Unknown Object (File)
Oct 6 2024, 9:40 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable