From ea56e4702f9d3af8d7dd89e27554dfa54524025f Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 1 May 2019 11:45:45 -0700 Subject: [PATCH] tls: add --tls-min-v1.2 CLI switch Switch added in v11.x, add it to master/12.x for consistency and compatibility. See: https://github.com/nodejs/node/pull/26951, commit bf2c283555c6b26 --- doc/api/cli.md | 9 +++++++++ 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, 35 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 50185b0cc094c3..e819451ee132b4 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -586,6 +586,15 @@ added: v12.0.0 Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.1'. Use for compatibility with old TLS clients or servers. +### `--tls-min-v1.2` + + +Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.2'. This is the default for +12.x and later, but the option is supported for compatibility with older Node.js +versions. + ### `--tls-min-v1.3`