What a TLS failure on a hybrid group means in Node.js
When a Node.js TLS connection fails on a hybrid group, the handshake either errors out or the peers fall back to a classic group that the process has not allowed. In both cases the connection is not sent in the clear: TLS refuses to proceed without an agreed key exchange, so the failure shows up as a broken or refused connection rather than as data leaking. The developer or the team running the Node.js service owns the fix. It is a change to their own code, their ecdhCurve configuration, or the Node.js version they deploy, not to a hosted provider they cannot control. Urgency is best treated as planned work rather than an emergency. Clients that already offer hybrid groups will be affected by the server's choices, so the team should find the failing services before peers start rejecting them.
The cause is usually one of two things. The first is an explicit ecdhCurve value that lists only classic groups, such as X25519:P-256. Because an explicit value replaces the automatic selection, the hybrid group is left out of the offer. The second is an older bundled OpenSSL. Node.js 24.5.0 is the release documented as first bundling OpenSSL 3.5.1, and the Node.js 22.20.0 notes say its official builds bundle OpenSSL 3.5.2, while third-party builds that link an external OpenSSL are not changed by that bundling. Run node -p process.versions.openssl in the affected environment to see which OpenSSL the process uses, and check node --version against those releases. Confirm which build and which OpenSSL your deployment actually runs, because a container image or distribution package may differ from the official binary.
Start by reviewing every ecdhCurve setting in the codebase and in any tls.createServer() or tls.connect() call, then decide whether each one should be left at auto or should include the hybrid group. Before changing anything, confirm that the OpenSSL behind the process knows the group name by running openssl list -tls-groups, since a build that does not recognize X25519MLKEM768 will reject a list containing it with the error text "Failed to set ECDH curve." Record the owner of each service and the Node.js version it runs, so the change can be tested and rolled back per service.
Who has to act on a Node.js TLS error
A Node.js TLS failure on a hybrid group can have three different owners: the code that sets the curve list, the team that picks the Node.js version and build, and the operator of the peer that has to accept the group. Check the owner before you change anything, because a fix in one place does not help when the failing component sits in another.
Application developers set ecdhCurve
If your code calls tls.createSecureContext(), tls.connect() or tls.createServer() with an explicit ecdhCurve, you control which groups the connection offers. A list that names only classic groups such as X25519:P-256 leaves out the hybrid group, so the client never offers it. Leave ecdhCurve unset or set to auto, or add the hybrid group to the list. Confirm the change by checking the negotiated group on the client socket.
Platform teams choose the Node.js build
The platform or operations team decides which Node.js version and build runs in production. Node.js 24.5.0 is the first release that bundles OpenSSL 3.5, and Node.js 22.20.0 bundles OpenSSL 3.5.2 for official builds and default configurations. Run node -p process.versions.openssl on each host to confirm the bundled version. If the OpenSSL version is too old for the group name in your list, the call can fail with "Failed to set ECDH curve".
Third-party builds follow their OpenSSL
A Node.js build linked to an external OpenSSL is controlled by whoever maintains that OpenSSL, not by the Node.js project. The Node.js 22.20.0 release notes say the bundled OpenSSL change does not affect third-party builds that link to an external OpenSSL. Ask the distributor or the team that maintains the OpenSSL library which version and group support it ships, before you assume the bundled upgrade applies to your host.
Node.js 22.20.0 notesServer operators must accept the group
For the handshake to succeed, the peer you connect to must accept the hybrid group your client offers. If the server or the load balancer in front of it does not support the group, the negotiation fails regardless of your Node.js settings. Ask the operator of that peer which TLS groups it accepts, and whether any intermediate proxy or load balancer rejects larger handshakes. Your client change alone may not resolve the error.
Check the negotiated group
Call tlsSocket.getEphemeralKeyInfo() on the client socket to see which group was negotiated. On Node.js 24 and later it can return a name for the TLS Supported Group. On 22.x the documentation lists only DH and ECDH, so a hybrid group may not appear and the result can be an empty object. Use --tls-keylog=file to capture key material for Wireshark if the result is unclear.
How to check the Node.js version and negotiated group
This sequence confirms which Node.js and bundled OpenSSL versions are in use, lists the TLS group names that OpenSSL can offer, and reads the group actually negotiated on a live connection. Together these results show whether a hybrid group is available and whether it is used, before any setting is changed.
Confirm the installed Node.js version
Run
node --versionin the shell where the application starts, and in the same environment the service uses in production, since a container or process manager can point to a different binary. The command prints the Node.js version string, which matchesprocess.versionin the Node.js process documentation. Record the major version, because the negotiated-group reporting differs between Node.js 22.x and v24. Confirm the result is complete when the version string prints without an error and matches the runtime your team deploys.Read the bundled OpenSSL version
Run
node -p process.versions.opensslto print the OpenSSL version bundled with that Node.js binary. The Node.js 24.5.0 release notes state that this release was the first to bundle OpenSSL 3.5, specifically 3.5.1, and the Node.js 22.20.0 release notes describe OpenSSL 3.5.2 for official builds or builds using the default configuration. If the output shows a version below 3.5, a hybrid group such asX25519MLKEM768is unlikely to be available from the bundled library. Builds that link to an external OpenSSL report that library's version, and the 22.20.0 notes say this does not affect third-party builds, so check that build's own documentation. Confirm the step when a version string is printed and compared against the release notes.List the TLS group names OpenSSL supports
Run
openssl list -tls-groupsto print the IANA names of the TLS groups the OpenSSL library can use. By default the output includes groups compatible with TLS 1.3, and the-tls1_2option lists the groups compatible with TLS 1.2. Check whether a hybrid name such asX25519MLKEM768appears in the output, since that name is the one used in theecdhCurvesetting. Note that this command runs the standaloneopensslbinary on the path, which may be a different OpenSSL from the one inside Node.js, so the bundled version from the previous step is the one that counts for Node.js. Confirm the step when the group list prints and you have noted whether the hybrid name is present.Start a client connection to a hybrid-capable server
Write a short client script that calls
tls.connect()to a server known to offer a hybrid group, and wait for thesecureConnectevent before reading anything from the socket. Keep the script minimal so the result reflects only the handshake. If you need to inspect the handshake itself, add the--tls-keylog=fileoption when starting Node.js, which writes key material in the NSSSSLKEYLOGFILEformat that tools such as Wireshark can read. Confirm the step when the script connects and thesecureConnectevent fires without a handshake error.Call getEphemeralKeyInfo on the client socket
Inside the
secureConnecthandler, calltlsSocket.getEphemeralKeyInfo()on the client socket and log the returned object. The current Node.js documentation says it can return a'TLSGroup'type with anamefield holding the negotiated TLS Supported Group. Call it only on the client side, because on a server socket it returnsnull. Confirm the step when the logged object shows anamevalue that matches a group from theopenssl list -tls-groupsoutput.Interpret null and empty results
If the call returns
null, you are probably looking at a server socket or the connection did not complete, so check that the handler runs on the client. If it returns an empty object, the key agreement was not ephemeral, or on Node.js 22.x the function documents only the'DH'and'ECDH'types, withnameavailable only for'ECDH', so a hybrid group may not be reported at all. Do not read an empty result on 22.x as proof that the hybrid group was not negotiated. On v24 the documentation includes the'TLSGroup'type, so an empty result there points to a non-ephemeral exchange. Confirm the step by recording which major version produced the result and the exact object returned.Record the results before changing settings
Write down the Node.js version, the bundled OpenSSL version, whether the hybrid name appears in the group list, and the object returned by
getEphemeralKeyInfo(), along with the major version of Node.js. These results show whether a fix is needed and which setting, such asecdhCurve, should be changed. Keep the record with the deployment notes so a later upgrade can be compared against it. Confirm the step when all four results are written down and attributed to the runtime they came from.
Which cause matches the Node.js error
Each row pairs one cause of a hybrid group failure in Node.js with the symptom to look for and the change that resolves it. Find the row that matches your build, Node.js release and ecdhCurve setting, then apply that fix. The main takeaway is that an explicit classic-only ecdhCurve list drops the hybrid group, so leaving the setting unset or set to auto is usually the first change to test.
| Cause | What you see | Fix |
|---|---|---|
| Explicit classic-only ecdhCurve list | Connection succeeds but no hybrid group is negotiated, because X25519:P-256 leaves out the hybrid group | Unset ecdhCurve or set it to auto, or add the hybrid group, for example X25519MLKEM768:X25519:P-256 |
| OpenSSL does not know the group name | Startup or connection fails with "Failed to set ECDH curve" after a hybrid name is listed | Confirm the group with openssl list -tls-groups against the OpenSSL behind Node.js, then remove the name or use a build with a newer OpenSSL |
| Node.js release bundles OpenSSL before 3.5 | Hybrid groups are unavailable, and node -p process.versions.openssl shows a version earlier than 3.5 | Upgrade to a Node.js release that bundles OpenSSL 3.5 or later, such as 24.5.0 or a later 22.x patch |
| Third-party build linked to an external OpenSSL | Bundled-OpenSSL release notes do not apply, and the reported OpenSSL version differs from the release's bundled version | Check which OpenSSL the binary links against, then upgrade that OpenSSL to 3.5 or later or rebuild Node.js with the bundled copy |
| ecdhCurve set to auto or left unset | OpenSSL's own default group list applies, and hybrid groups appear only if that default includes them | Keep the setting as is, then confirm the negotiated group with getEphemeralKeyInfo() on the client socket |
| Negotiated group not reported on Node.js 22.x | getEphemeralKeyInfo() returns an empty object, because the 22.x documentation lists only DH and ECDH types | Confirm the group on a Node.js 24.x test host or capture the handshake with --tls-keylog=file in Wireshark |
What to change in Node.js to offer the hybrid group
The sequence moves Node.js onto an OpenSSL build that knows the hybrid group, then sets or confirms the TLS group list so the hybrid key exchange is offered and can be negotiated. Each step ends with a check you can run before moving on.
Check the installed Node.js and OpenSSL versions
Run
node --versionto see the Node.js release, then runnode -p process.versions.opensslto see the OpenSSL version that Node.js was built with. Node.js 24.5.0 is the first release that bundled OpenSSL 3.5, specifically 3.5.1, and the 22.x line picked up OpenSSL 3.5 in 22.20.0. If the bundled OpenSSL reports a version below 3.5, the hybrid group will not be available from the default settings, so continue to the upgrade step. Done when you have both version strings written down for the change record.Upgrade to a Node.js release bundling OpenSSL 3.5 or later
Move the application to Node.js 24.5.0 or a later 24.x release, or to a later 22.x release such as 22.20.0 or the 22.23.x releases that moved the bundled OpenSSL to 3.5.8 and 3.5.9. Official builds and builds using the default configuration carry the bundled OpenSSL. Third-party builds that link to an external OpenSSL are not changed by this release, so check which OpenSSL those builds load. Done when
node -p process.versions.opensslreports 3.5 or later on the host that runs the application.Remove or set ecdhCurve to auto
In the code that creates TLS contexts or sockets, find any
ecdhCurveoption passed totls.createSecureContext(),tls.connect()ortls.createServer(). Remove the option, or set it to'auto'. Theautovalue skips the explicit group call, so OpenSSL's own default group list applies and includes the hybrid group when the OpenSSL build supports it. Done when the option is absent or set to'auto'in every place the service configures TLS, and a code search forecdhCurveshows no fixed lists that omit the hybrid group.Add the hybrid group only where an explicit list is required
Use this step only if the service must keep an explicit list. Confirm first that the OpenSSL behind Node.js knows the group name by running
openssl list -tls-groupsagainst that build, and look for X25519MLKEM768 in the output. Then set the list with the hybrid group first, for exampleecdhCurve: 'X25519MLKEM768:X25519:P-256'. A list that names only classic groups leaves out the hybrid group, and a build that does not know the name fails with the error "Failed to set ECDH curve". Done when the list is accepted without that error and the output of the OpenSSL check matches the name you used.Restart the process or reload the service
Restart the Node.js process so the new version and the changed TLS options take effect, or use your process manager's reload command. Packaged installs and container images change the Node.js version inside the image, so rebuild the image, update the base image tag, and redeploy rather than patching a running container. Done when the running process reports the expected version and the service starts without a TLS setup error in its logs.
Confirm the hybrid group is offered and negotiated
Make a test connection from a client that offers the hybrid group, then call
tlsSocket.getEphemeralKeyInfo()on the client socket. On Node.js 24.x the result can show type'TLSGroup'with the negotiated group name. On Node.js 22.x that method documents only'DH'and'ECDH'types, so the hybrid group may not be reported and the result can be an empty object. On 22.x, capture the handshake with--tls-keylog=fileand inspect it in a tool such as Wireshark to confirm the group. Done when you have a recorded handshake or key info that shows the group your configuration selected.
How the Node.js fix differs by installation
Official Node.js builds that use the default build configuration ship their own OpenSSL, so the reader's main control is the Node.js version itself. The Node.js 24.5.0 release, dated 2025-07-31, was the first to bundle OpenSSL 3.5, specifically 3.5.1, and the Node.js 22.20.0 LTS release, dated 2025-09-24, bundles OpenSSL 3.5.2 for official builds. Later Node.js 22 and 24 releases moved the bundled OpenSSL to newer 3.5.x versions. Check the installed OpenSSL with node -p process.versions.openssl.
- Upgrade Node.js itself: Move to a release line that bundles OpenSSL 3.5 or later, such as 24.5.0 or a later 24.x release, or 22.20.0 or later on the 22.x line.
- Confirm the bundled version: Run
node -p process.versions.opensslafter the upgrade to confirm the OpenSSL version. - Keep the ecdhCurve setting in mind: Leave
ecdhCurveatautounless a reason to set it exists, since an explicit list can drop the hybrid group. - Track point releases: Later 22.x and 24.x releases moved the bundled OpenSSL to 3.5.8 and 3.5.9, so pick the newest patch release for the line in use.
Check that the installed version reports an OpenSSL 3.5 or later version before testing the connection again.
Third-party and distribution builds that link to an external OpenSSL do not get the bundled OpenSSL from the Node.js release. The Node.js 22.20.0 release notes say its OpenSSL 3.5.2 change does not affect third-party builds that link to an external OpenSSL, so the reader must check which OpenSSL library the binary actually loads. In these builds the OpenSSL version is set by the system or the distributor, not by the Node.js version number alone.
- Find the linked library: Check the OpenSSL version reported by
node -p process.versions.openssland compare it with the system OpenSSL. - Upgrade the system OpenSSL: Where the distribution supplies OpenSSL, update that package, which may require a newer distribution release.
- Ask the build maintainer: Confirm with the distributor which OpenSSL version their build links to and when an update is planned.
- Test the group list: A linked OpenSSL that does not know a group name can reject an explicit
ecdhCurvevalue with "Failed to set ECDH curve". - Check after each change: Rerun the version check after any system or distribution update.
Confirm the linked OpenSSL version with the build maintainer before assuming a Node.js upgrade alone solves the problem.
A container image carries its own Node.js binary and its own OpenSSL, so the fix belongs in the image build rather than the host. Rebuilding on a base image with an updated Node.js version changes the bundled OpenSSL only if the image uses an official build. If the image installs Node.js from a distribution package, the OpenSSL comes from that package's base layer.
- Rebuild on a newer base: Change the base image tag to one that carries a Node.js release with OpenSSL 3.5 or later.
- Verify inside the image: Run
node -p process.versions.opensslinside the container, not on the host. - Check the package source: If Node.js is installed from the distribution, confirm the package provides OpenSSL 3.5 or later in that image.
- Pin and document the version: Record the image tag and the OpenSSL version so later rebuilds do not silently revert.
- Redeploy running containers: A running container keeps its old binary until it is replaced with a new image.
Confirm the version inside the running container before marking the image as fixed.
Managed or hosted Node.js platforms, such as platform-as-a-service offerings and serverless runtimes, run Node.js on infrastructure the reader does not control. The reader may be able to choose a runtime version in the platform's settings, but cannot rebuild Node.js or change the linked OpenSSL. The sources listed here do not say which hosted platforms have moved to OpenSSL 3.5 or later, so that must be confirmed with each vendor.
- Select the runtime version: Use the platform's settings to choose a Node.js line that bundles OpenSSL 3.5 or later, if the platform offers one.
- Ask the vendor about OpenSSL: Confirm which OpenSSL version the platform's Node.js runtime uses and when it is updated.
- Check runtime output: Where the platform allows, log
process.versions.opensslat startup to record the version in use. - Plan around unknown timing: If the vendor cannot confirm a date, record the gap and ask for written commitments.
- Retest after each change: Repeat the handshake test after any runtime change the vendor makes.
The vendor's written answer on the bundled OpenSSL is the only reliable source for this installation type.
How to confirm the Node.js TLS fix worked
Start by rerunning the two checks from earlier in the page: node --version to confirm the runtime, and node -p process.versions.openssl to confirm the OpenSSL version it bundles. Then repeat the connection that failed, using the same host, port and code path. Success means the TLS handshake completes where it failed before. On Node.js 24.5.0 and later, and on 22.x builds that bundle OpenSSL 3.5, you can also call tlsSocket.getEphemeralKeyInfo() on the client socket after connecting. A name value that matches the hybrid group you configured, such as X25519MLKEM768, shows the group was negotiated. If the call returns a null value on a server socket, that is expected, since it only reports on the client side.
On Node.js 22.x, do not rely on the group name. The v22 documentation lists only the 'DH' and 'ECDH' types for getEphemeralKeyInfo() and says name is available only for 'ECDH', so a hybrid group may not be reported, and the call can return an empty object. In that case, confirm the fix by the handshake succeeding. For a stronger check, run the client with --tls-keylog=file, which writes key material in NSS SSLKEYLOGFILE format. Open the capture in a tool such as Wireshark, configure it with the key log file, and inspect the ServerHello to see which group the server selected. Delete the key log file when you finish, because it allows decryption of captured sessions.
After the fix, watch the application logs and the server side for handshake errors, especially the "Failed to set ECDH curve" message, which indicates the configured group name is not known to the OpenSSL behind that Node.js build. Also watch for a fallback to classic groups, which means the connection succeeds but the post-quantum key exchange is not in use. Keep the rerun checks and the key log result with your change record, and recheck after any Node.js or OpenSSL upgrade, since the bundled OpenSSL version changes across the 22.x and 24.x releases.
What can break after changing ecdhCurve or upgrading Node.js
Changing ecdhCurve or upgrading Node.js can alter which TLS groups a connection offers, and that can break peers that expect a different set. The cards below cover the peers, pinned settings and build types most likely to fail after either change.
Older clients offering only classic groups
Older clients and automation may offer only classic groups such as X25519 or P-256 and never offer a hybrid group. If your server or client now requires a hybrid group through an explicit ecdhCurve value, those peers can fail the handshake. Before changing the setting, list the clients that connect to the service and confirm which groups each one offers. Test a classic-only peer against the new configuration, not only the modern browser you use day to day.
CI runners pinned to older Node.js
A CI runner or container image pinned to an older Node.js release may bundle an older OpenSSL, so it will not offer the same groups as production. Node.js 24.5.0 is the first release in the supplied sources that bundles OpenSSL 3.5, so a runner on an earlier line may not know the hybrid group at all. Compare node -p process.versions.openssl on the runner and in production before trusting test results. Tests that pass on an old runner may not reflect production behavior.
Pinned host and algorithm lists
Configuration management, allowlists and hard-coded values can pin a host list or an ecdhCurve string that predates the upgrade. After an upgrade or a change in ecdhCurve, a pinned value may name groups that the new OpenSSL build rejects, which surfaces as the error "Failed to set ECDH curve". Search your code, configuration files and deployment templates for ecdhCurve and for hard-coded group names. Update every copy together, since one stale copy can keep the old behavior alive.
Cipher suites versus group lists
The --tls-cipher-list option sets cipher suites, not key exchange groups, so changing it does not change which hybrid group is offered. Teams sometimes edit the cipher list while trying to add a post-quantum group, and nothing changes. Group selection is controlled by ecdhCurve. Check both settings separately when you troubleshoot, and confirm which one a given flag or environment variable actually controls.
FIPS and compliance-mode builds
FIPS or other compliance-mode builds may restrict which groups the underlying OpenSSL accepts, so a group name that works in the default build may be refused. The sources supplied do not say which groups a given FIPS build permits. Confirm the permitted group list with your OpenSSL provider or build documentation before you set ecdhCurve in a compliance-mode environment. Then test the handshake on that exact build.
Third-party builds linked to external OpenSSL
The Node.js 22.20.0 notes say its bundled OpenSSL 3.5.2 applies to official builds or builds using the default configuration, and do not affect third-party builds that link to an external OpenSSL. If your Node.js binary is a third-party or custom build, the group support depends on the OpenSSL it links against, not on the version number in the release notes. Run openssl list -tls-groups against that same library to see which group names it accepts.
When a Node.js TLS error needs outside help
Some Node.js TLS problems are better handled by outside help than by a quick change to ecdhCurve. Bring in help when you cannot upgrade Node.js or its build, because a runtime that bundles an older OpenSSL may not know the hybrid group at all. The same applies when you do not control the server or platform that terminates the connection, when many services built on different Node.js versions fail at once, or when a regulated environment needs evidence of what changed and when. In each of these cases the fix is less about one setting and more about which runtime, which build and which peers are involved. The Node.js 24.5.0 release notes and the Node.js 22.x changelogs record when the bundled OpenSSL moved to 3.5, so the first useful step is to record the exact output of node --version and node -p process.versions.openssl on each affected host.
DeployOpen can plan, upgrade, configure and document the Node.js components involved in these failures. That work covers mapping which services run which Node.js builds, checking whether a build is official or links to an external OpenSSL, changing ecdhCurve or the runtime version in a controlled way, and retesting the negotiated group with tlsSocket.getEphemeralKeyInfo() where the version reports it. The result is a written record of the change that your own compliance and security teams can review. DeployOpen does not issue audit reports, attestations or certifications. Where a regulator or customer asks for an independent assessment, that comes from an auditor or certification body, and the change record DeployOpen prepares is the evidence that assessment would examine.
Before you ask for help, confirm the details the fix depends on: the Node.js version, whether the binary uses bundled or external OpenSSL, the ecdhCurve value currently in code, and the peers that must still connect. Ask any provider to state in writing which Node.js versions they will test, how they will verify the negotiated group, and what they will hand over. A fixed-scope agreement with those points written down makes the result easier to check later.
Questions developers ask about the Node.js TLS error
Is the connection still encrypted when the hybrid group fails?
A failed hybrid group does not by itself mean the connection is sent unencrypted. When the hybrid group cannot be negotiated, the client and server still need a shared group to complete the handshake, so the connection either falls back to a group both sides support or it fails outright. Confirm the behavior in your own environment by testing the connection and checking the negotiated group with tlsSocket.getEphemeralKeyInfo(), rather than assuming. The Node.js TLS documentation describes how ecdhCurve sets the groups offered or accepted, and that is the setting to inspect when a handshake stops.
Is the Node.js TLS error urgent to fix?
It depends on what the error is blocking. If a connection that worked yesterday now fails on a hybrid group, the error is operationally urgent because traffic stops. If the connection still succeeds on a classic group, the error is a signal to plan the change rather than an emergency. The sources do not give a deadline for your organization, so confirm any internal or contractual requirement with your security and compliance owners. Treat the fix as a configuration change to test and roll out, not a reason to disable TLS checks.
Can I ignore or silence the error instead of fixing it?
No. Silencing the error is not a fix. Suppressing the message or disabling certificate and handshake checks removes the signal without restoring a working connection, and it can hide real problems. A temporary measure may be acceptable only alongside the real change, for example a short-lived setting while you test a corrected ecdhCurve value, and it should be removed afterward. Record any temporary measure, its owner and its removal date, and confirm the approach with your security team before deploying it.
Why does this Node.js TLS error appear now?
The error appears when a Node.js application offers or requires a hybrid post-quantum key exchange group that its OpenSSL build does not handle as expected, or when an explicit ecdhCurve list leaves out the hybrid group. Node.js 24.5.0, released 2025-07-31, is the release that first bundled OpenSSL 3.5, specifically 3.5.1. Node.js 22.20.0 (LTS), released 2025-09-24, bundles OpenSSL 3.5.2 for official builds. Older runtimes bundle older OpenSSL versions that may not know the hybrid group name, so the same code can behave differently after an upgrade. Check your installed version with node --version and node -p process.versions.openssl.
What should I do if I cannot upgrade Node.js right away?
If an upgrade is not possible yet, first confirm which OpenSSL version your Node.js build uses. Then check whether your application sets ecdhCurve explicitly. Leaving ecdhCurve unset or set to auto lets OpenSSL's default group list apply, which is the documented default since v10.0.0. If you must keep an explicit list, you can add the hybrid group, for example X25519MLKEM768:X25519:P-256, but a build whose OpenSSL does not know that group name rejects the list with the error text "Failed to set ECDH curve". List the group names your OpenSSL supports with openssl list -tls-groups, and test in a non-production environment before changing production settings.
How do I check which group a Node.js connection actually negotiated?
Call tlsSocket.getEphemeralKeyInfo() on a client socket after the handshake completes. In the current Node.js documentation for v24, it can return type 'TLSGroup' with name set to the negotiated group. On a server socket it returns null. On Node.js 22.x, the documentation lists only 'DH' and 'ECDH' types and says name is available only for 'ECDH', so a hybrid group may not be reported and the result can be an empty object. If you need to inspect the full handshake, --tls-keylog=file writes key material in NSS SSLKEYLOGFILE format for tools such as Wireshark, which should be handled as sensitive data and deleted after use.
Should I get outside help to fix this error?
Outside help is worth considering when the Node.js service is part of a regulated workload, when the connection crosses firewalls, proxies or load balancers you do not control, or when your team cannot test changes safely. DeployOpen plans, implements and tests self-hosted open-source platforms inside your own infrastructure, and it can review TLS and handshake configuration as part of that work. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and DeployOpen does not publish a price list, so ask for a quote based on your written scope. DeployOpen does not issue audit reports or certifications.
How DeployOpen works on this
DeployOpen approaches Node.js TLS errors on hybrid post-quantum groups by first identifying the Node.js and bundled OpenSSL versions in use, then testing the ecdhCurve setting against real handshakes. The work ends with a documented configuration that your team can review, repeat and maintain.
How we scope
- Record the Node.js version and the bundled OpenSSL version on each service, using node --version and node -p process.versions.openssl.
- Identify every TLS server and client where ecdhCurve is set explicitly, since an explicit list replaces automatic group selection.
- Agree the written scope, deliverables and timeline with your team before any configuration change begins.
How we build
- List the TLS group names your OpenSSL build supports with openssl list -tls-groups to confirm the hybrid group name is available.
- Test ecdhCurve set to auto against a classic-only list and a list that includes X25519MLKEM768, recording each result.
- Capture handshakes with --tls-keylog and check the negotiated group with getEphemeralKeyInfo() on the client socket.
How we hand over
- Provide the final ecdhCurve setting for each service, with the reason it was chosen and the Node.js version it was tested on.
- Document the expected error text, including Failed to set ECDH curve, and the steps to take if a build rejects the group name.
- Give your team a repeatable test procedure that confirms the hybrid group is negotiated after each Node.js upgrade.
How we support
- Ongoing support and continuous testing are available as a retainer, covering Node.js upgrades that change the bundled OpenSSL version.
- Review the configuration again when Node.js moves to a new OpenSSL release, since bundled versions change across release lines.
- Confirm the getEphemeralKeyInfo() output on Node.js 22.x, where hybrid groups may not be reported and results can be empty.

