@@ -1358,20 +1358,13 @@ changes:
13581358 * ` maxVersion ` {string} Optionally set the maximum TLS version to allow. One
13591359 of ` TLSv1.3 ` , ` TLSv1.2' ` , ` 'TLSv1.1' ` , or ` 'TLSv1' ` . Cannot be specified
13601360 along with the ` secureProtocol ` option, use one or the other.
1361- ** Default:** ` 'TLSv1.3' ` , unless changed using CLI options. Using
1362- ` --tls-max-v1.2 ` sets the default to ` 'TLSv1.2 ` '. Using ` --tls-max-v1.3 `
1363- sets the default to ` 'TLSv1.3' ` . If multiple of the options are provided,
1364- the highest maximum is used.
1361+ ** Default:** [ ` tls.DEFAULT_MAX_VERSION ` ] [ ] .
13651362 * ` minVersion ` {string} Optionally set the minimum TLS version to allow. One
13661363 of ` TLSv1.3 ` , ` TLSv1.2' ` , ` 'TLSv1.1' ` , or ` 'TLSv1' ` . Cannot be specified
13671364 along with the ` secureProtocol ` option, use one or the other. It is not
13681365 recommended to use less than TLSv1.2, but it may be required for
13691366 interoperability.
1370- ** Default:** ` 'TLSv1.2' ` , unless changed using CLI options. Using
1371- ` --tls-min-v1.0 ` sets the default to ` 'TLSv1' ` . Using ` --tls-min-v1.1 ` sets
1372- the default to ` 'TLSv1.1' ` . Using ` --tls-min-v1.3 ` sets the default to
1373- ` 'TLSv1.3' ` . If multiple of the options are provided, the lowest minimum is
1374- used.
1367+ ** Default:** [ ` tls.DEFAULT_MIN_VERSION ` ] [ ] .
13751368 * ` passphrase ` {string} Shared passphrase used for a single private key and/or
13761369 a PFX.
13771370 * ` pfx ` {string|string[ ] |Buffer|Buffer[ ] |Object[ ] } PFX or PKCS12 encoded
@@ -1537,6 +1530,35 @@ The default curve name to use for ECDH key agreement in a tls server. The
15371530default value is ` 'auto' ` . See [ ` tls.createSecureContext() ` ] for further
15381531information.
15391532
1533+ ## tls.DEFAULT_MAX_VERSION
1534+ <!-- YAML
1535+ added: v11.4.0
1536+ -->
1537+
1538+ * {string} The default value of the ` maxVersion ` option of
1539+ [ ` tls.createSecureContext() ` ] [ ] . It can be assigned any of the supported TLS
1540+ protocol versions, ` TLSv1.3 ` , ` TLSv1.2' ` , ` 'TLSv1.1' ` , or ` 'TLSv1' ` .
1541+ ** Default:** ` 'TLSv1.3' ` , unless changed using CLI options. Using
1542+ ` --tls-max-v1.2 ` sets the default to ` 'TLSv1.2 ` '. Using ` --tls-max-v1.3 ` sets
1543+ the default to ` 'TLSv1.3' ` . If multiple of the options are provided, the
1544+ highest maximum is used.
1545+
1546+
1547+ ## tls.DEFAULT_MIN_VERSION
1548+ <!-- YAML
1549+ added: v11.4.0
1550+ -->
1551+
1552+ * {string} The default value of the ` minVersion ` option of
1553+ [ ` tls.createSecureContext() ` ] [ ] . It can be assigned any of the supported TLS
1554+ protocol versions, ` 'TLSv1.3' ` , ` TLSv1.2' ` , ` 'TLSv1.1' ` , or ` 'TLSv1' ` .
1555+ ** Default:** ` 'TLSv1.2' ` , unless changed using CLI options. Using
1556+ ` --tls-min-v1.0 ` sets the default to ` 'TLSv1' ` . Using ` --tls-min-v1.1 ` sets
1557+ the default to ` 'TLSv1.1' ` . Using ` --tls-min-v1.3 ` sets the default to
1558+ ` 'TLSv1.3' ` . If multiple of the options are provided, the lowest minimum is
1559+ used.
1560+
1561+
15401562## Deprecated APIs
15411563
15421564### Class: CryptoStream
@@ -1664,6 +1686,8 @@ where `secureSocket` has the same API as `pair.cleartext`.
16641686[ `server.setTicketKeys()` ] : #tls_server_setticketkeys_keys
16651687[ `socket.setTimeout(timeout)` ] : #net_socket_settimeout_timeout_callback
16661688[ `tls.DEFAULT_ECDH_CURVE` ] : #tls_tls_default_ecdh_curve
1689+ [ `tls.DEFAULT_MAX_VERSION` ] : #tls_tls_default_max_version
1690+ [ `tls.DEFAULT_MIN_VERSION` ] : #tls_tls_default_min_version
16671691[ `tls.Server` ] : #tls_class_tls_server
16681692[ `tls.TLSSocket.getPeerCertificate()` ] : #tls_tlssocket_getpeercertificate_detailed
16691693[ `tls.TLSSocket.getSession()` ] : #tls_tlssocket_getsession
0 commit comments