From 60eca6a5d4fb5d70c4affceb1fbe78f1c1db8354 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 22 Oct 2018 11:40:28 +0200 Subject: [PATCH] tls: disable TLS v1.0 and v1.1 by default Refs: https://blog.mozilla.org/security/2018/10/15/removing-old-versions-of-tls/ PR-URL: https://github.com/nodejs/node/pull/23814 Reviewed-By: Refael Ackermann Reviewed-By: Sam Roberts Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Rod Vagg Reviewed-By: Matteo Collina --- doc/api/cli.md | 16 ++++++++++++++++ doc/api/tls.md | 3 ++- doc/node.1 | 8 ++++++++ src/node_crypto.cc | 8 +++++++- src/node_options.cc | 11 +++++++++++ src/node_options.h | 5 +++++ .../test-https-agent-additional-options.js | 3 ++- .../test-https-agent-session-eviction.js | 1 + test/parallel/test-process-env-allowed-flags.js | 3 ++- test/parallel/test-tls-getprotocol.js | 1 + test/parallel/test-tls-session-cache.js | 3 ++- 11 files changed, 57 insertions(+), 5 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 29f3360dda1d78..723e849d4e467f 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -342,6 +342,22 @@ added: v4.0.0 Specify an alternative default TLS cipher list. Requires Node.js to be built with crypto support (default). +### `--tls-v1.0` + + +Enable TLSv1.0. This should only be used for compatibility with old TLS +clients or servers. + +### `--tls-v1.1` + + +Enable TLSv1.1. This should only be used for compatibility with old TLS +clients or servers. + ### `--trace-deprecation`