Page MenuHomeFreeBSD

certctl: Fix recent regressions.
ClosedPublic

Authored by des on Oct 18 2023, 2:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 1:37 PM
Unknown Object (File)
Tue, Apr 30, 1:37 PM
Unknown Object (File)
Tue, Apr 30, 1:37 PM
Unknown Object (File)
Tue, Apr 30, 7:16 AM
Unknown Object (File)
Sat, Apr 6, 12:47 PM
Unknown Object (File)
Mar 31 2024, 6:20 AM
Unknown Object (File)
Jan 5 2024, 10:33 PM
Unknown Object (File)
Dec 25 2023, 5:23 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