Skip to content

tls: load all CRLs from a PEM bundle - #65577

Open
lazerg wants to merge 1 commit into
nodejs:mainfrom
lazerg:fix/issue-65576-crl-bundle
Open

tls: load all CRLs from a PEM bundle#65577
lazerg wants to merge 1 commit into
nodejs:mainfrom
lazerg:fix/issue-65576-crl-bundle

Conversation

@lazerg

@lazerg lazerg commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

AddCRL() read a single PEM block and returned, so a crl option holding several concatenated CRLs only ever got its first entry into the store. Any certificate whose issuer's CRL came later in the bundle then failed with UNABLE_TO_GET_CRL.

Read in a loop until the BIO is exhausted, the way AddCACertificates() right above it already does for ca bundles.

Fixes: #65576

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. labels Aug 27, 2026
@lazerg
lazerg force-pushed the fix/issue-65576-crl-bundle branch from 06781d7 to d20618d Compare August 27, 2026 08:31
AddCRL() read a single PEM block and returned, so a crl option holding
several concatenated CRLs only ever got its first entry into the store.
Any certificate whose issuer's CRL came later in the bundle then failed
with UNABLE_TO_GET_CRL.

Read in a loop until the BIO is exhausted, the way AddCACertificates()
right above it already does for ca bundles.

Signed-off-by: Lazizbek Ergashev <lazerg2@gmail.com>
@lazerg
lazerg force-pushed the fix/issue-65576-crl-bundle branch from d20618d to 9db73ed Compare August 27, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tls: crl option only loads first CRL from concatenated PEM bundle

2 participants