Page MenuHomeFreeBSD

bsdinstall: do a `certctl rehash` upon installation of configuration
ClosedPublic

Authored by kevans on Apr 30 2020, 6:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 16 2024, 2:37 PM
Unknown Object (File)
Sep 30 2024, 9:35 AM
Unknown Object (File)
Sep 13 2024, 5:19 AM
Unknown Object (File)
Sep 10 2024, 8:44 PM
Unknown Object (File)
Sep 7 2024, 11:10 AM
Unknown Object (File)
Aug 13 2024, 1:57 AM
Unknown Object (File)
Jul 14 2024, 11:49 AM
Unknown Object (File)
Jun 8 2024, 7:53 AM
Subscribers

Details

Summary

If certctl is installed on the system we're configuring, do a certctl rehash.

Note that certctl may not be present if the world we've installed was built either WITHOUT_OPENSSL or WITHOUT_CAROOT. In this scenario, we don't currently see if the host has a certctl as this may be an indication that the system *shouldn't* have certs installed into /etc/ssl.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

allanjude added a subscriber: allanjude.

This looks good to me. Although I wonder if we might not want a solution that also covers people who don't run the installer. So that things like the VM Images that are generated by the release have the certs setup

This revision is now accepted and ready to land.Apr 30 2020, 6:22 PM

This looks good to me. Although I wonder if we might not want a solution that also covers people who don't run the installer. So that things like the VM Images that are generated by the release have the certs setup

Based on discussion from IRC, I think we're leaning towards doing the rehash in installworld after the new certs are installed (since they aren't configuration files), which should put them onto the install media and in the base.txz generated by release(7). That should be sufficient to not need this, right?