mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
Added option to not use TLS with connection to Intel AMT, usage is not recommanded.
This commit is contained in:
@@ -533,7 +533,7 @@ module.exports.CreateAmtManager = function (parent) {
|
||||
|
||||
// Connect now
|
||||
var comm;
|
||||
if (dev.tlsfail !== true) {
|
||||
if ((dev.tlsfail !== true) && (parent.config.domains[dev.domainid].amtmanager.tlsconnections !== false)) {
|
||||
parent.debug('amt', dev.name, (dev.connType == 1) ? 'Relay-Connect' : 'LMS-Connect', "TLS", user);
|
||||
comm = CreateWsmanComm(dev.nodeid, 16993, user, pass, 1, null, ciraconn); // Perform TLS
|
||||
comm.xtlsFingerprint = 0; // Perform no certificate checking
|
||||
@@ -565,7 +565,7 @@ module.exports.CreateAmtManager = function (parent) {
|
||||
|
||||
// Connect now
|
||||
var comm;
|
||||
if (dev.tlsfail !== true) {
|
||||
if ((dev.tlsfail !== true) && (parent.config.domains[dev.domainid].amtmanager.tlsconnections !== false)) {
|
||||
parent.debug('amt', dev.name, 'Direct-Connect', "TLS", dev.host, user);
|
||||
comm = CreateWsmanComm(dev.host, 16993, user, pass, 1); // Always try with TLS first
|
||||
comm.xtlsFingerprint = 0; // Perform no certificate checking
|
||||
|
||||
Reference in New Issue
Block a user