新增于: v11.4.0
- <string>
tls.createSecureContext() 的 maxVersion 选项的默认值。
它可以分配任何支持的 TLS 协议版本,'TLSv1.3'、'TLSv1.2'、'TLSv1.1' 或 'TLSv1'。
默认值: 'TLSv1.3', 除非使用 CLI 选项更改。
使用 --tls-max-v1.2 将默认设置为 'TLSv1.2'。
使用 --tls-max-v1.3 将默认设置为 'TLSv1.3'。
如果提供了多个选项,则使用最高的最大值。
Added in: v11.4.0
- <string> The default value of the
maxVersion option of
tls.createSecureContext(). It can be assigned any of the supported TLS
protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'.
Default: 'TLSv1.3', unless changed using CLI options. Using
--tls-max-v1.2 sets the default to 'TLSv1.2'. Using --tls-max-v1.3 sets
the default to 'TLSv1.3'. If multiple of the options are provided, the
highest maximum is used.