Page MenuHomeFreeBSD

certctl: Fix recent regressions.
ClosedPublic

Authored by des on Oct 18 2023, 2:40 PM.
Tags
None
Referenced Files
F109427797: D42276.diff
Tue, Feb 4, 10:38 PM
Unknown Object (File)
Wed, Jan 29, 5:40 PM
Unknown Object (File)
Tue, Jan 28, 12:42 PM
Unknown Object (File)
Nov 27 2024, 10:46 PM
Unknown Object (File)
Oct 12 2024, 2:37 PM
Unknown Object (File)
Oct 12 2024, 2:36 PM
Unknown Object (File)
Oct 1 2024, 2:44 PM
Unknown Object (File)
Sep 19 2024, 3:08 AM

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54058
Build 50948: arc lint + arc unit

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