René's URL Explorer Experiment


Title: build: v24.22.1 fails with --shared-openssl on OpenSSL 3.0.x: EVP_PKEY_PRIVATE_KEY not declared (deps/ncrypto) · Issue #66926 · nodejs/node · GitHub

Open Graph Title: build: v24.22.1 fails with --shared-openssl on OpenSSL 3.0.x: EVP_PKEY_PRIVATE_KEY not declared (deps/ncrypto) · Issue #66926 · nodejs/node

X Title: build: v24.22.1 fails with --shared-openssl on OpenSSL 3.0.x: EVP_PKEY_PRIVATE_KEY not declared (deps/ncrypto) · Issue #66926 · nodejs/node

Description: Version v24.22.1 (source tarball from nodejs.org/dist) Platform Ubuntu 22.04, x86_64 System OpenSSL: 3.0.2 (libssl-dev 3.0.2-0ubuntu1.x) Compiler: g++-12 (12.3.0) Python 3.10.12 What steps will reproduce the bug? curl -fsO https://nodejs...

Open Graph Description: Version v24.22.1 (source tarball from nodejs.org/dist) Platform Ubuntu 22.04, x86_64 System OpenSSL: 3.0.2 (libssl-dev 3.0.2-0ubuntu1.x) Compiler: g++-12 (12.3.0) Python 3.10.12 What steps will rep...

X Description: Version v24.22.1 (source tarball from nodejs.org/dist) Platform Ubuntu 22.04, x86_64 System OpenSSL: 3.0.2 (libssl-dev 3.0.2-0ubuntu1.x) Compiler: g++-12 (12.3.0) Python 3.10.12 What steps will rep...

Opengraph URL: https://github.com/nodejs/node/issues/66926

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"build: v24.22.1 fails with --shared-openssl on OpenSSL 3.0.x: EVP_PKEY_PRIVATE_KEY not declared (deps/ncrypto)","articleBody":"### Version\n\nv24.22.1 (source tarball from nodejs.org/dist)\n\n### Platform\n\n- Ubuntu 22.04, x86_64\n- System OpenSSL: 3.0.2 (`libssl-dev` 3.0.2-0ubuntu1.x)\n- Compiler: g++-12 (12.3.0)\n- Python 3.10.12\n\n### What steps will reproduce the bug?\n\n```sh\ncurl -fsO https://nodejs.org/dist/v24.22.1/node-v24.22.1.tar.gz\ntar zxf node-v24.22.1.tar.gz && cd node-v24.22.1\nexport CXX=g++-12\n./configure --shared-openssl --ninja\nmake -j$(nproc)\n```\n\n### What is the expected behavior?\n\nThe build ends successfully. `deps/ncrypto/ncrypto.h` already guards newer OpenSSL features with `OPENSSL_VERSION_PREREQ(3, 0)` and `OPENSSL_VERSION_PREREQ(3, 2)`. This suggests that OpenSSL 3.0.x is a supported version for `--shared-openssl`.\n\n### What do you see instead?\n\nThe build stops with these errors:\n\n```\n../../deps/ncrypto/ncrypto.cc: In function 'ncrypto::EVPKeyPointer ncrypto::{anonymous}::NewDhPKey(const BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*)':\n../../deps/ncrypto/ncrypto.cc:235:18: error: 'EVP_PKEY_PRIVATE_KEY' was not declared in this scope; did you mean 'EVP_PKEY_PUBLIC_KEY'?\n../../deps/ncrypto/ncrypto.cc:280:18: error: 'EVP_PKEY_PRIVATE_KEY' was not declared in this scope; did you mean 'EVP_PKEY_PUBLIC_KEY'?\n../../deps/ncrypto/ncrypto.cc:3985:18: error: 'EVP_PKEY_PRIVATE_KEY' was not declared in this scope; did you mean 'EVP_PKEY_PUBLIC_KEY'?\nninja: build stopped: subcommand failed.\n```\n\n### Additional information\n\n- The same build works with v24.18.1. That version does not use `EVP_PKEY_PRIVATE_KEY` in `deps/ncrypto/ncrypto.cc`. v22.23.4 does not use it either.\n- The bundled OpenSSL in `deps/openssl` defines the macro in `evp.h`:\n  ```c\n  #define EVP_PKEY_PRIVATE_KEY \\\n      (EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PRIVATE_KEY)\n  ```\n  OpenSSL 3.0.2 has `EVP_PKEY_KEY_PARAMETERS`, `EVP_PKEY_PUBLIC_KEY`, `EVP_PKEY_KEYPAIR` and `OSSL_KEYMGMT_SELECT_PRIVATE_KEY`. It does not have `EVP_PKEY_PRIVATE_KEY`.\n- **Workaround:** this compatibility define at the top of `deps/ncrypto/ncrypto.cc` fixes the build:\n  ```c\n  #ifndef EVP_PKEY_PRIVATE_KEY\n  #define EVP_PKEY_PRIVATE_KEY (EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PRIVATE_KEY)\n  #endif\n  ```\n  With this define, the full build passes on Ubuntu 22.04 (OpenSSL 3.0.2, g++-12). We add it with `sed -i '1i ...' deps/ncrypto/ncrypto.cc` before `./configure`. We did not run the Node test suite on the result.\n- I did not find which release first used the macro. It is between v24.18.1 and v24.22.1.\n- Context: we build Node from source with `--shared-openssl` on Ubuntu 22.04 base images. We need v24.22.1 for the security fixes in the 2026-10-21 release.\n\n**Proposed fix:** Guard the use of `EVP_PKEY_PRIVATE_KEY` in `deps/ncrypto/ncrypto.cc`, or add the compatibility define in `ncrypto.h` for OpenSSL versions that lack it.\n","author":{"url":"https://github.com/dragos-cojocari","@type":"Person","name":"dragos-cojocari"},"datePublished":"2026-10-22T11:34:41Z","url":"https://github.com/nodejs/node/issues/66926"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7173d3f1-462a-1cdd-1430-3711865a0066
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8718:10F3E3:3B1B9E:4DBCF6:6AFBBBB6
html-safe-nonce86953e99ffd0b07769f0ead50fd8e34888a85dbdca321d24774f04391e242160
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzE4OjEwRjNFMzozQjFCOUU6NERCQ0Y2OjZBRkJCQkI2IiwidmlzaXRvcl9pZCI6IjIzMTMyMzI2Mzk2ODAyOTc5MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace95ea90e084dd2f7c3837bbbd3482ed9819e9d710deb6a4b42b0a104f79ce18c
hovercard-subject-tagissue:5978507658
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66926/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4c297f6a79252b9ad7459efd0800e56db339862bb229da5a1810174c4e16cc72/nodejs/node/issues/66926
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c297f6a79252b9ad7459efd0800e56db339862bb229da5a1810174c4e16cc72/nodejs/node/issues/66926
og:image:altVersion v24.22.1 (source tarball from nodejs.org/dist) Platform Ubuntu 22.04, x86_64 System OpenSSL: 3.0.2 (libssl-dev 3.0.2-0ubuntu1.x) Compiler: g++-12 (12.3.0) Python 3.10.12 What steps will rep...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedragos-cojocari
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/66926#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F66926
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F66926
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/66926
Reloadhttps://github.com/nodejs/node/issues/66926
Reloadhttps://github.com/nodejs/node/issues/66926
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues643 (643)https://github.com/nodejs/node/issues
Pull requests678 (678)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66926
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66926
#66931https://github.com/nodejs/node/pull/66931
build: v24.22.1 fails with --shared-openssl on OpenSSL 3.0.x: EVP_PKEY_PRIVATE_KEY not declared (deps/ncrypto)https://github.com/nodejs/node/issues/66926#top
#66931https://github.com/nodejs/node/pull/66931
release-agendaIssues and PRs to discuss during Release team meetings.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22release-agenda%22
https://github.com/dragos-cojocari
dragos-cojocarihttps://github.com/dragos-cojocari
on Oct 22, 2026https://github.com/nodejs/node/issues/66926#issue-5978507658
https://github.com/richardlau
richardlauhttps://github.com/richardlau
on Oct 22, 2026https://github.com/nodejs/node/issues/66926#issuecomment-6341387587
https://github.com/panva
panvahttps://github.com/panva
on Oct 23, 2026https://github.com/nodejs/node/issues/66926#issuecomment-6362921260
#66931https://github.com/nodejs/node/pull/66931
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#66931https://github.com/nodejs/node/pull/66931
on Oct 24, 2026https://github.com/nodejs/node/issues/66926#event-34130871138
nodejs-github-bothttps://github.com/nodejs-github-bot
on Oct 24, 2026https://github.com/nodejs/node/issues/66926#event-34130871291
crypto: fix builds with older OpenSSL 3.0https://github.com/nodejs/node/commit/91c4436158c615b0e3bb1b6a02c2c85eea0d1adf
91c4436https://github.com/nodejs/node/commit/91c4436158c615b0e3bb1b6a02c2c85eea0d1adf
https://github.com/mboisson
mboissonhttps://github.com/mboisson
on Oct 26, 2026https://github.com/nodejs/node/issues/66926#issuecomment-6419101938
https://github.com/panva
panvahttps://github.com/panva
on Oct 26, 2026https://github.com/nodejs/node/issues/66926#issuecomment-6419206101
#66931https://github.com/nodejs/node/pull/66931
#66953https://github.com/nodejs/node/pull/66953
panvahttps://github.com/panva
release-agendaIssues and PRs to discuss during Release team meetings.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22release-agenda%22
on Oct 26, 2026https://github.com/nodejs/node/issues/66926#event-34273002040
https://github.com/richardlau
richardlauhttps://github.com/richardlau
on Oct 26, 2026https://github.com/nodejs/node/issues/66926#issuecomment-6419699660
https://github.com/mboisson
mboissonhttps://github.com/mboisson
on Oct 26, 2026https://github.com/nodejs/node/issues/66926#issuecomment-6422287369
MikeMcC399https://github.com/MikeMcC399
on Nov 11, 2026https://github.com/nodejs/node/issues/66926#event-35839410738
crypto: fix builds with older OpenSSL 3.0https://github.com/MikeMcC399/node/commit/4518c7501f7a6b149eb18dac8ffc78e0e250be38
4518c75https://github.com/MikeMcC399/node/commit/4518c7501f7a6b149eb18dac8ffc78e0e250be38
crypto: fix builds with older OpenSSL 3.0https://github.com/MikeMcC399/node/commit/5654932a7d3cf4d7c9bb01f41cc0ff6b7023db79
5654932https://github.com/MikeMcC399/node/commit/5654932a7d3cf4d7c9bb01f41cc0ff6b7023db79
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/66926
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66926
release-agendaIssues and PRs to discuss during Release team meetings.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22release-agenda%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.