tls: docs-deprecate TLS renegotiation, add allowRenegotiation opt-in

For now this changes very little, but offers an option to directly
control whether this is supported. In future, this will default to
'false' (disabling by default) and eventually be mostly removed,
except opt-in client support for accepting renegotiation requests
from servers.

Signed-off-by: Tim Perry <pimterry@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67532
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
Tim Perry authored and Antoine du Hamel committed 2026-11-19 15:44:17 +01:00
1 parent 7f45cb7070
commit 66b97e61bc
12 files changed
+441 -7

No files matched your search

+2 -1
View File
@@ -474,7 +474,8 @@ Makes a request to a secure web server.
The following additional `options` from [`tls.connect()`][] are also accepted:
`ca`, `cert`, `ciphers`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`,
`key`, `passphrase`, `pfx`, `rejectUnauthorized`, `secureOptions`,
`secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
`secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`,
`allowRenegotiation`.
`options` can be an object, a string, or a [`URL`][] object. If `options` is a
string, it is automatically parsed with [`new URL()`][]. If it is a [`URL`][]