Page MenuHomeFreeBSD

security/p11-kit: use base system consolidated anchor lists
Needs ReviewPublic

Authored by novel on Wed, Aug 26, 6:05 PM.
Tags
None
Referenced Files
F169812062: D59200.id.diff
Wed, Sep 2, 3:37 PM
F169682367: D59200.diff
Wed, Sep 2, 7:02 AM
F169558151: D59200.diff
Tue, Sep 1, 10:15 PM
F169550192: D59200.diff
Tue, Sep 1, 9:42 PM
Unknown Object (File)
Tue, Sep 1, 10:04 AM
Unknown Object (File)
Mon, Aug 31, 3:52 PM
Unknown Object (File)
Mon, Aug 31, 7:13 AM
Unknown Object (File)
Sun, Aug 30, 10:00 AM
Subscribers

Details

Reviewers
None
Group Reviewers
Ports Committers
Summary

Currently p11-kit already use base-system certificates from /usr/share/certs
(since 8672992ef7f072f87304e953231de77179143f1d 2023-02-01 11:05:18 +0000).

Base system's certctl tool allows administrator to add locally trusted anchors
in /usr/local/share/certs, but p11-kit's current behaviour will ignore them.

I propose using system's consolidated certificates in /etc/ssl/certs and
/etc/ssl/untrusted instead of /usr/share/certs/trusted and
/usr/share/certs/untrusted.

These directories (/etc/ssl/ ones) are managed by system's certctl tool,
and reflects the same content plus admin's managed trusted/untrusted certs.

This change should not break any current behaviour on FreeBSD > 12.2.

This is also coherent with debian's behaviour (on debian, p11_trust_paths
is set to /etc/ssl/certs/ca-certificates.crt, updated by system's
update-ca-certificate which allows custom anchors listed in
/etc/ca-certificates.conf).

PR: 297759

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76191
Build 73074: arc lint + arc unit

Event Timeline

novel requested review of this revision.Wed, Aug 26, 6:05 PM
novel created this revision.

CC @des as well

security/p11-kit/Makefile
53

The untrusted path probably needs to go away entirely, but using /etc instead of /usr/share is a bug-fix IMO.