@@ -1358,20 +1358,13 @@ changes:
1358
1358
* ` maxVersion ` {string} Optionally set the maximum TLS version to allow. One
1359
1359
of ` TLSv1.3 ` , ` TLSv1.2' ` , ` 'TLSv1.1' ` , or ` 'TLSv1' ` . Cannot be specified
1360
1360
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 ` ] [ ] .
1365
1362
* ` minVersion ` {string} Optionally set the minimum TLS version to allow. One
1366
1363
of ` TLSv1.3 ` , ` TLSv1.2' ` , ` 'TLSv1.1' ` , or ` 'TLSv1' ` . Cannot be specified
1367
1364
along with the ` secureProtocol ` option, use one or the other. It is not
1368
1365
recommended to use less than TLSv1.2, but it may be required for
1369
1366
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 ` ] [ ] .
1375
1368
* ` passphrase ` {string} Shared passphrase used for a single private key and/or
1376
1369
a PFX.
1377
1370
* ` 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
1537
1530
default value is ` 'auto' ` . See [ ` tls.createSecureContext() ` ] for further
1538
1531
information.
1539
1532
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
+
1540
1562
## Deprecated APIs
1541
1563
1542
1564
### Class: CryptoStream
@@ -1664,6 +1686,8 @@ where `secureSocket` has the same API as `pair.cleartext`.
1664
1686
[ `server.setTicketKeys()` ] : #tls_server_setticketkeys_keys
1665
1687
[ `socket.setTimeout(timeout)` ] : #net_socket_settimeout_timeout_callback
1666
1688
[ `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
1667
1691
[ `tls.Server` ] : #tls_class_tls_server
1668
1692
[ `tls.TLSSocket.getPeerCertificate()` ] : #tls_tlssocket_getpeercertificate_detailed
1669
1693
[ `tls.TLSSocket.getSession()` ] : #tls_tlssocket_getsession
0 commit comments