GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tls: preserve CN name constraints with OpenSSL 4.1 by panva · Pull Request #65957 · nodejs/node

Conversation

@panva

@panva panva commented Sep 10, 2026

Copy link
Copy Markdown
Member

I'm opening this after checking out the OpenSSL 4.1 alpha release and having an LLM find behaviour changes, this one stood out as something that might need ironing out. Other 4.1 related test or doc fixes are in #65956.

I would much rather that someone more aware of TLS takes a look at this instead.

OpenSSL 4.1 no longer applies DNS name constraints to the subject CN by default, but tls.checkServerIdentity() still uses it without a DNS SAN. Enable subject checking during chain verification only when no DNS SAN exists, preserving the existing hostname verification policy.

Assisted-by: Codex

Refs: https://openssl-library.org/post/2026-09-09-openssl-4.1-alpha/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@panva
tls: preserve CN name constraints with OpenSSL 4.1
997742f
OpenSSL no longer applies DNS name constraints to the subject CN by
default, but tls.checkServerIdentity() still uses it without a DNS SAN.
Enable subject checking during chain verification only when no DNS SAN
exists, preserving the existing hostname verification policy.

Assisted-by: Codex
Signed-off-by: Filip Skokan <[email protected]>
@panva
panva requested review from jasnell, mcollina, pimterry and tniessen September 10, 2026 10:35
@nodejs-github-bot

nodejs-github-bot commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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 Sep 10, 2026
@panva
fixup! tls: preserve CN name constraints with OpenSSL 4.1
f94d82b
@codecov

codecov Bot commented Sep 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.17%. Comparing base (b805fb5) to head (f94d82b).
⚠️ Report is 160 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65957      +/-   ##
==========================================
- Coverage   90.17%   90.17%   -0.01%     
==========================================
  Files         771      771              
  Lines      265489   265489              
  Branches    50471    50478       +7     
==========================================
- Hits       239405   239394      -11     
- Misses      17042    17048       +6     
- Partials     9042     9047       +5     
Files with missing lines Coverage Δ
src/crypto/crypto_tls.cc 78.76% <ø> (ø)

... and 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panva

panva commented Sep 18, 2026

Copy link
Copy Markdown
Member Author

I would much rather that someone more aware of TLS takes a look at this instead.

ping @mcollina @jasnell @pimterry @tniessen

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pimterry
pimterry approved these changes Sep 18, 2026
View reviewed changes
@pimterry

pimterry commented Sep 18, 2026

Copy link
Copy Markdown
Member

In the short term this looks right to me and we should do it to keep things working consistently here, absolutely 👍

Any thoughts about the long-term though? One option is that we could align with OpenSSL et al and stop using the subject CN entirely going forwards. Would need a deprecation cycle, but that seems like a reasonable direction to aim eventually.

The change here notably doesn't cover dtls or quic. Both are experimental anyway, and do cert verification slightly differently, so AFAICT they don't need this patch (behaviour will change with 4.1, but in a safe way and they're experimental).

If we're planning to preserve the current behaviour indefinitely, imo we should patch them too in some equivalent way and be consistent. If we're planning to start a deprecation cycle then we should leave them as is and let node:tls eventually make the breaking change and match them instead. I'd lean towards the breaking change myself.

Doesn't need to block this, just useful to discuss. Good to fix this regardless and QUIC/DTLS aren't an issue while they're experimental anyway.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pimterry pimterry added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 18, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 18, 2026
@panva panva added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Sep 18, 2026
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@github-actions github-actions Bot added request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. and removed request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Sep 18, 2026
@panva panva removed the request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. label Sep 18, 2026
@nodejs nodejs deleted a comment from github-actions Bot Sep 18, 2026
@nodejs-github-bot

nodejs-github-bot commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/77616/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/77628/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panva panva added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 19, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 4d1ab3e into nodejs:main Sep 19, 2026
90 of 91 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

Landed in 4d1ab3e

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 19, 2026
@panva
panva deleted the tls-cn-name-constraints branch September 19, 2026 07:37
aduh95 pushed a commit that referenced this pull request Sep 27, 2026
@panva @aduh95
tls: preserve CN name constraints with OpenSSL 4.1
684cae7
OpenSSL no longer applies DNS name constraints to the subject CN by
default, but tls.checkServerIdentity() still uses it without a DNS SAN.
Enable subject checking during chain verification only when no DNS SAN
exists, preserving the existing hostname verification policy.

Assisted-by: Codex
Signed-off-by: Filip Skokan <[email protected]>
PR-URL: #65957
Refs: https://openssl-library.org/post/2026-09-09-openssl-4.1-alpha/
Reviewed-By: Tim Perry <[email protected]>
@github-actions github-actions Bot mentioned this pull request Oct 5, 2026
2026-10-07, Version 26.11.0 (Current) #66546
Merged
@UlisesGascon UlisesGascon mentioned this pull request Oct 20, 2026
tls: reject chains containing blocked public keys #66871
Merged
@idrassi idrassi mentioned this pull request Oct 29, 2026
openssl: Remove the common name fallback curl/curl#22845
Closed
@leapmux-renovate leapmux-renovate Bot mentioned this pull request Nov 1, 2026
chore(deps): Update Node.js to v26 leapmux/leapmux#578
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pimterry pimterry pimterry approved these changes
@mcollina mcollina Awaiting requested review from mcollina
@jasnell jasnell Awaiting requested review from jasnell
@tniessen tniessen Awaiting requested review from tniessen

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. 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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@panva @nodejs-github-bot @pimterry
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.