Page MenuHomeFreeBSD

certctl: Fix recent regressions.
ClosedPublic

Authored by des on Oct 18 2023, 2:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 22, 2:06 PM
Unknown Object (File)
Sun, May 19, 8:46 AM
Unknown Object (File)
Mon, May 13, 1:25 PM
Unknown Object (File)
Thu, May 9, 8:12 PM
Unknown Object (File)
Thu, May 9, 2:56 PM
Unknown Object (File)
Thu, May 9, 3:45 AM
Unknown Object (File)
Thu, May 9, 1:16 AM
Unknown Object (File)
Tue, Apr 30, 1:37 PM

Details

Summary
  • If an untrusted certificate is also found in the list of trusted certificate, issue a warning and skip it, but don't fail.
  • Split on -+BEGIN CERTIFICATE-+ instead of "Certificate:" since that's what we're really looking for.

Also fix a long-standing bug: .crl files are not certificates, so we
should not include them when searching for certificates.

Reported by: madpilot, netchild, tijl

Diff Detail

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

Event Timeline

des requested review of this revision.Oct 18 2023, 2:40 PM
usr.sbin/certctl/certctl.sh
116

I confirm that this change fixes the issue with poudriere and untrusted certs.

This revision is now accepted and ready to land.Oct 19 2023, 8:04 AM
This revision was automatically updated to reflect the committed changes.
des marked an inline comment as done.Oct 20 2023, 12:58 PM