Title: Add support for `SSL_verify_client_post_handshake` · Issue #36926 · nodejs/node · GitHub
Open Graph Title: Add support for `SSL_verify_client_post_handshake` · Issue #36926 · nodejs/node
X Title: Add support for `SSL_verify_client_post_handshake` · Issue #36926 · nodejs/node
Description: Is your feature request related to a problem? Please describe. For TLSv1.2 and below, it is possible to renegotiate the session if you need to request the peer certificate (docs). The TLSv1.3 spec does not support renegotiation, so conne...
Open Graph Description: Is your feature request related to a problem? Please describe. For TLSv1.2 and below, it is possible to renegotiate the session if you need to request the peer certificate (docs). The TLSv1.3 spec ...
X Description: Is your feature request related to a problem? Please describe. For TLSv1.2 and below, it is possible to renegotiate the session if you need to request the peer certificate (docs). The TLSv1.3 spec ...
Opengraph URL: https://github.com/nodejs/node/issues/36926
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for `SSL_verify_client_post_handshake`","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\r\nFor `TLSv1.2` and below, it is possible to renegotiate the session if you need to request the peer certificate ([docs](https://nodejs.org/api/tls.html#tls_tlssocket_renegotiate_options_callback)).\r\n\r\nThe `TLSv1.3` spec does not support renegotiation, so connections using this protocol cannot use renegotiation to request the peer certificate. From OpenSSL's [wiki](https://wiki.openssl.org/index.php/TLS1.3#Renegotiation)\r\n\r\n> TLSv1.3 does not have renegotiation so calls to SSL_renegotiate() or SSL_renegotiate_abbreviated() will immediately fail if invoked on a connection that has negotiated TLSv1.3.\r\n> \r\n> A common use case for renegotiation is to update the connection keys. The function SSL_key_update() can be used for this purpose in TLSv1.3.\r\n> \r\n> Another use case is to request a certificate from the client. This can be achieved by using the SSL_verify_client_post_handshake() function in TLSv1.3.\r\n\r\n\r\n**Describe the solution you'd like**\r\n\r\nOpenSSL describes an alternative method to request the peer certificate: `SSL_verify_client_post_handshake` ([docs](https://www.openssl.org/docs/manmaster/man3/SSL_verify_client_post_handshake.html)).\r\n\r\nSimilar to how Node.js exposes `SSL_renegotiate()`, I would like to see Node.js expose `SSL_verify_client_post_handshake` to that we can consume this from application code.\r\n\r\n**Describe alternatives you've considered**\r\n\r\nFor my [specific use case](https://github.com/elastic/kibana/issues/88325), I only need to renegotiate because resumed/reused TLS sessions do not always contain the full certificate chain, which is a requirement for me. Forcing renegotiation solves my problem for TLSv1.2 and below, but I don't have a solution for TLSv1.3 at this time.\r\n\r\n","author":{"url":"https://github.com/legrego","@type":"Person","name":"legrego"},"datePublished":"2021-01-14T13:19:54Z","url":"https://github.com/nodejs/node/issues/36926"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:387e2748-0634-064c-021d-3f8cc6235690 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A924:1293AE:916DFF:BCD064:6B0631F5 |
| html-safe-nonce | 7114e0abc84c088c56a6f1b32c80a6375dc09e42b38d7597774fd7f4a880af39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTI0OjEyOTNBRTo5MTZERkY6QkNEMDY0OjZCMDYzMUY1IiwidmlzaXRvcl9pZCI6IjY2NTI0ODM4OTYwNjYwNjA3ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4d102cf617478398f88979675baeb7d7fd885ed1c2710f113162f71b7a2fc441 |
| hovercard-subject-tag | issue:785982636 |
| 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/36926/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b712937b2808b2cd24346b3779e2736fe5086743ae77d3aafffb13c9407cd511/nodejs/node/issues/36926 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b712937b2808b2cd24346b3779e2736fe5086743ae77d3aafffb13c9407cd511/nodejs/node/issues/36926 |
| og:image:alt | Is your feature request related to a problem? Please describe. For TLSv1.2 and below, it is possible to renegotiate the session if you need to request the peer certificate (docs). The TLSv1.3 spec ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | legrego |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| 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 | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width