Title: tlsSocket.getEphemeralKeyInfo() - doesn't display information for hybrid groups · Issue #59452 · nodejs/node · GitHub
Open Graph Title: tlsSocket.getEphemeralKeyInfo() - doesn't display information for hybrid groups · Issue #59452 · nodejs/node
X Title: tlsSocket.getEphemeralKeyInfo() - doesn't display information for hybrid groups · Issue #59452 · nodejs/node
Description: Version 22.16.0 Platform Linux x 6.12.0-116.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 1 19:40:37 EDT 2025 x86_64 GNU/Linux Subsystem TLS What steps will reproduce the bug? By creating a simple client and server script. Code for server.j...
Open Graph Description: Version 22.16.0 Platform Linux x 6.12.0-116.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 1 19:40:37 EDT 2025 x86_64 GNU/Linux Subsystem TLS What steps will reproduce the bug? By creating a simple cli...
X Description: Version 22.16.0 Platform Linux x 6.12.0-116.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 1 19:40:37 EDT 2025 x86_64 GNU/Linux Subsystem TLS What steps will reproduce the bug? By creating a simple cli...
Opengraph URL: https://github.com/nodejs/node/issues/59452
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tlsSocket.getEphemeralKeyInfo() - doesn't display information for hybrid groups","articleBody":"### Version\n\n22.16.0\n\n### Platform\n\n```text\nLinux x 6.12.0-116.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 1 19:40:37 EDT 2025 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nTLS\n\n### What steps will reproduce the bug?\n\nBy creating a simple client and server script.\n\nCode for server.js:\n```\nconst tls = require(\"tls\");\nconst fs = require(\"fs\");\n\nconst options = {\n key: fs.readFileSync(\"key.pem\"),\n cert: fs.readFileSync(\"cert.pem\"),\n maxVersion: \"TLSv1.3\",\n ciphers: \"\", \n ecdhCurve: \"SecP384r1MLKEM1024\",\n};\n\nconst server = tls.createServer(options, (socket) =\u003e {\n});\n\nserver.listen(8000, () =\u003e {\n});\n```\nCode for client.js:\n\n```\nconst tls = require(\"tls\");\nconst fs = require(\"fs\");\n\nconst options = {\n ca: fs.readFileSync(\"cert.pem\"),\n rejectUnauthorized: true,\n servername: \"localhost\",\n maxVersion: \"TLSv1.3\",\n ciphers: \"\",\n ecdhCurve: \"X25519:secp256r1:SecP384r1MLKEM1024\",\n};\n\nconst client = tls.connect(8000, \"localhost\", options, () =\u003e {\n const ephemeralKeyInfo = client.getEphemeralKeyInfo();\n console.log(\"Client - Ephemeral Key Info:\", ephemeralKeyInfo);\n});\n\nclient.on(\"data\", (data) =\u003e {\n client.end();\n});\n\nclient.on(\"close\", () =\u003e {\n});\n```\n\nCommands used for generating key/cert:\n```\nopenssl genpkey -algorithm ML-DSA-44 -out key.pem\nopenssl req -x509 -new -key key.pem -out cert.pem -nodes -days 365 -subj \"/CN=localhost\"\n```\n\nand then starting the server and connecting with the client:\n```\nnode server.js \u0026 \nnode client.js\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways, when following reproduction steps.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe standard output of getEphemeralKeyInfo() as is for non-hybrid groups.\n\nFor example if this would be the ecdhCurve option specified in the server.js:\n```\necdhCurve: 'X25519'\n```\nwhich returns this result:\n```\n[root@kvm-08-guest21 ~]# node client.js \nClient - Ephemeral Key Info: { type: 'ECDH', name: 'X25519', size: 253 }\n```\n\nSo for a hybrid-key something like this:\n`Client - Ephemeral Key Info: { type: 'Hybrid', name: 'SecP384r1MLKEM1024', size: \u003ccombined-size\u003e }\n`\n\n### What do you see instead?\n\nAn empty object is returned.\n\n```\n[root@kvm-08-guest21 ~]# node client.js \nClient - Ephemeral Key Info: {}\n```\n\n\n### Additional information\n\nI have been recently trying to verify the usage of hybrid-groups in nodejs component. Trying to verify used groups I couldn't access the information through TLS module itself and had to use openssl client.\n\nI'm testing this on distribution in which nodejs is build with the --shared-openssl configuration. \n\nSystems openssl:\n\n```\nopenssl -v\nOpenSSL 3.5.1 1 Jul 2025 (Library: OpenSSL 3.5.1 1 Jul 2025)\n```\n","author":{"url":"https://github.com/tjuhaszrh","@type":"Person","name":"tjuhaszrh"},"datePublished":"2025-08-12T10:59:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/59452/node/issues/59452"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cb9c276b-2f3f-3ee4-d8ea-bdbb42b6ec82 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADC8:89EF1:702611:9852CE:6A4D6803 |
| html-safe-nonce | 0aea7ee854ce972f8370d2c1f162f0a2e97b214aad3067a7df44e397c46b2e06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREM4Ojg5RUYxOjcwMjYxMTo5ODUyQ0U6NkE0RDY4MDMiLCJ2aXNpdG9yX2lkIjoiODQ3MTExMjIxMDQxNTcwODE2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ac3b18992c86fd7319ac49297609d79267d60fe80db955cde6f2f18a2dcccb6 |
| hovercard-subject-tag | issue:3313707992 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/59452/issue_layout |
| twitter:image | https://opengraph.githubassets.com/974fd248e4354646bab66a6fcd5fcd6430f98aa03620f864f094b4076c42c701/nodejs/node/issues/59452 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/974fd248e4354646bab66a6fcd5fcd6430f98aa03620f864f094b4076c42c701/nodejs/node/issues/59452 |
| og:image:alt | Version 22.16.0 Platform Linux x 6.12.0-116.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 1 19:40:37 EDT 2025 x86_64 GNU/Linux Subsystem TLS What steps will reproduce the bug? By creating a simple cli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tjuhaszrh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width