Skip to content

[fix] X509 store issuer lookup with duplicate subject DNs - #379

Merged
kares merged 4 commits into
masterfrom
ssl-cert-order
Sep 25, 2026
Merged

kares merged 4 commits into
masterfrom
ssl-cert-order

Conversation

@kares

@kares kares commented Sep 25, 2026

Copy link
Copy Markdown
Member

Fix certificate-chain verification when multiple CA certificates share the same subject DN, such as during CA rotation.

The store now continues scanning all matching certificate entries instead of assuming same-subject entries are contiguous. This allows verification to find the issuer whose key and signature actually match.

Also tighten certificate and CRL object matching to use full encoded-object equality, avoiding collisions between distinct objects from the same issuer/subject.

certificate implementations already cache the code
The local certificate store preserves insertion order rather than OpenSSL's subject index ordering. Continue scanning after nonmatching entries so rotated CAs with the same subject can be considered during verification.
@kares
kares marked this pull request as ready for review September 25, 2026 11:06
@kares kares added this to the 0.19.2 milestone Sep 25, 2026
@kares
kares merged commit 662cb9a into master Sep 25, 2026
150 checks passed
@kares
kares deleted the ssl-cert-order branch September 25, 2026 14:11
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.

TLS trust store does not iterate over multiple CA certificates with the same subject DN

1 participant