From bf2c283555c6b2651d55ef37816616a16c3f37f5 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 28 Mar 2019 10:52:41 -0700 Subject: [PATCH] tls: add --tls-min-v1.2 CLI switch For 11.x, the default minimum is TLSv1, so it needs a CLI switch to change the default to the more secure minimum of TLSv1.2. PR-URL: https://github.com/nodejs/node/pull/26951 Reviewed-By: Rod Vagg Reviewed-By: Beth Griggs --- doc/api/cli.md | 8 ++++++++ doc/node.1 | 4 ++++ lib/tls.js | 2 ++ src/node_options.cc | 4 ++++ src/node_options.h | 1 + test/parallel/test-tls-cli-min-version-1.2.js | 15 +++++++++++++++ 6 files changed, 34 insertions(+) create mode 100644 test/parallel/test-tls-cli-min-version-1.2.js diff --git a/doc/api/cli.md b/doc/api/cli.md index 8c68db546b3742..3d4a1adb91aee2 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -475,6 +475,14 @@ added: REPLACEME Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.1'. Use for compatibility with old TLS clients or servers. +### `--tls-min-v1.2` + + +Set default [`minVersion`][] to `'TLSv1.2'`. Use to disable support for TLSv1 +and TLSv1.1 in favour of TLSv1.2, which is more secure. + ### `--tls-min-v1.3`