Page MenuHomeFreeBSD

caroot: Generate both trusted and untrusted
ClosedPublic

Authored by des on Aug 6 2025, 9:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 5, 4:53 PM
Unknown Object (File)
Fri, Sep 5, 4:25 PM
Unknown Object (File)
Wed, Sep 3, 7:24 PM
Unknown Object (File)
Tue, Sep 2, 2:30 PM
Unknown Object (File)
Sun, Aug 31, 4:06 PM
Unknown Object (File)
Sun, Aug 31, 11:31 AM
Unknown Object (File)
Sun, Aug 31, 10:12 AM
Unknown Object (File)
Sun, Aug 31, 10:12 AM
Subscribers

Details

Summary

Until now, the untrusted directory has been maintained manually. Modify
the script used to maintain the trusted directory so it can handle both.
While here, clean it up a bit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66508
Build 63391: arc lint + arc unit

Event Timeline

des requested review of this revision.Aug 6 2025, 9:48 PM
markj added inline comments.
secure/caroot/MAca-bundle.pl
96

This appears to be unused.

secure/caroot/untrusted/Makefile
8

Why not cd ${.CURDIR} here as you did in trusted/Makefile?

des marked 2 inline comments as done.Mon, Aug 25, 3:30 PM
secure/caroot/MAca-bundle.pl
140

Isn't the key supposed to be $cka_label."\0".$serial?

secure/caroot/MAca-bundle.pl
140

It is. I don't know how it got turned around. Than you for catching that.

des marked an inline comment as done.Mon, Aug 25, 7:21 PM

avoid using find -printf, which is not backward compatible

secure/caroot/MAca-bundle.pl
140

this in fact explains why untrusted certs were getting dropped...

This revision is now accepted and ready to land.Mon, Aug 25, 7:45 PM
mandree requested changes to this revision.Mon, Aug 25, 8:49 PM
mandree added inline comments.
secure/caroot/MAca-bundle.pl
62–64

This seems to lose the "outputdir" option. I understand the semantic change, but it breaks compatibility.
We need to make sure this is documented well, and give the (valid) reason to resolve ambiguity.

249–250

I had added this safety catch after some format change caused us to end up without trusted certs. Do we really want to kill this feature?

This revision now requires changes to proceed.Mon, Aug 25, 8:49 PM
secure/caroot/MAca-bundle.pl
62–64

This is explained in the commit message. The original script produced only trusted certificates, and the untrusted certificates were maintained manually. This version produces both trusted and untrusted certificates, so the outputdir option is split in two.

249–250

I don't see the point. Remember that this is not user-facing or even part of the build. Immediately after running make updatecerts, I'm going to run git status and then either git add if I'm happy with what I see or git checkout if I'm not.

This revision is now accepted and ready to land.Mon, Aug 25, 9:15 PM
This revision was automatically updated to reflect the committed changes.