Skip to content

Remove signature check for detecting self-signed vs self-issued certs#5515

Merged
randombit merged 1 commit intomasterfrom
jack/skip-self-issued-check
Apr 3, 2026
Merged

Remove signature check for detecting self-signed vs self-issued certs#5515
randombit merged 1 commit intomasterfrom
jack/skip-self-issued-check

Conversation

@randombit
Copy link
Copy Markdown
Owner

This wastes time when parsing trust stores and isn't needed by anything.

This wastes time when parsing trust stores and isn't needed by anything.
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 89.492% (-0.03%) from 89.524%
when pulling 8778121 on jack/skip-self-issued-check
into 042e5bd on master.

@randombit randombit requested a review from Copilot April 3, 2026 05:00
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes expensive self-signature verification during X.509 parsing and relies on DN/SKID/AKID heuristics to mark certificates as “self-signed” for path-building purposes.

Changes:

  • Replace signature verification with a heuristic: subject DN == issuer DN, and (when present) SKID == AKID.
  • Default to self_signed = true when subject==issuer but SKID/AKID are missing.
  • Expand inline documentation explaining the rationale and intended usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@randombit randombit merged commit 73b945e into master Apr 3, 2026
235 of 270 checks passed
@randombit randombit deleted the jack/skip-self-issued-check branch April 3, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants