mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 22:25:52 -05:00
fix: AMT WSMAN comm Direct TLS to allow unsafe legacy negotiation
This commit is contained in:
parent
b5338b746a
commit
427b5263ba
@ -274,7 +274,7 @@ var CreateWsmanComm = function (host, port, user, pass, tls, tlsoptions, mpsConn
|
|||||||
obj.socket.connect(obj.port, obj.host, obj.xxOnSocketConnected);
|
obj.socket.connect(obj.port, obj.host, obj.xxOnSocketConnected);
|
||||||
} else {
|
} else {
|
||||||
// Direct connect with TLS
|
// Direct connect with TLS
|
||||||
var options = { ciphers: 'RSA+AES:!aNULL:!MD5:!DSS', secureOptions: obj.constants.SSL_OP_NO_SSLv2 | obj.constants.SSL_OP_NO_SSLv3 | obj.constants.SSL_OP_NO_COMPRESSION | obj.constants.SSL_OP_CIPHER_SERVER_PREFERENCE, rejectUnauthorized: false };
|
var options = { ciphers: 'RSA+AES:!aNULL:!MD5:!DSS', secureOptions: obj.constants.SSL_OP_NO_SSLv2 | obj.constants.SSL_OP_NO_SSLv3 | obj.constants.SSL_OP_NO_COMPRESSION | obj.constants.SSL_OP_CIPHER_SERVER_PREFERENCE | obj.constants.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, rejectUnauthorized: false };
|
||||||
if (obj.xtlsMethod != 0) { options.secureProtocol = 'TLSv1_method'; }
|
if (obj.xtlsMethod != 0) { options.secureProtocol = 'TLSv1_method'; }
|
||||||
if (obj.xtlsoptions) {
|
if (obj.xtlsoptions) {
|
||||||
if (obj.xtlsoptions.ca) { options.ca = obj.xtlsoptions.ca; }
|
if (obj.xtlsoptions.ca) { options.ca = obj.xtlsoptions.ca; }
|
||||||
|
Loading…
Reference in New Issue
Block a user