mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
tls: disable TLS v1.0 and v1.1 by default
Refs: https://blog.mozilla.org/security/2018/10/15/removing-old-versions-of-tls/ PR-URL: https://github.com/nodejs/node/pull/23814 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
fcd7a72428
commit
60eca6a5d4
11 files changed
+57
-5
No files matched your search
@@ -1,3 +1,4 @@
|
||||
// Flags: --tls-v1.1
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
@@ -34,7 +35,7 @@ const updatedValues = new Map([
|
||||
['ecdhCurve', 'secp384r1'],
|
||||
['honorCipherOrder', true],
|
||||
['secureOptions', crypto.constants.SSL_OP_CIPHER_SERVER_PREFERENCE],
|
||||
['secureProtocol', 'TLSv1_method'],
|
||||
['secureProtocol', 'TLSv1_1_method'],
|
||||
['sessionIdContext', 'sessionIdContext'],
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user