From 78e8dfd9fdadcfb7a3d9fd8535181e66ceb8e550 Mon Sep 17 00:00:00 2001 From: Karl von Randow Date: Sun, 20 Nov 2022 06:43:30 +1300 Subject: [PATCH] Add ciphers to support J7 --- bin/getpassword.js | 2 +- lib/v2/local.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/getpassword.js b/bin/getpassword.js index 6bb107e..0f487bc 100755 --- a/bin/getpassword.js +++ b/bin/getpassword.js @@ -88,7 +88,7 @@ function checkV2 () { console.log(robotData); }); const packet = 'f005efcc3b2900'; - var client = tls.connect(8883, host, {timeout: 10000, rejectUnauthorized: false, ciphers: process.env.ROBOT_CIPHERS || 'AES128-SHA256'}, function () { + var client = tls.connect(8883, host, {timeout: 10000, rejectUnauthorized: false, ciphers: process.env.ROBOT_CIPHERS || 'AES128-SHA256,TLS_AES_256_GCM_SHA384' }, function () { client.write(new Buffer(packet, 'hex')); }); diff --git a/lib/v2/local.js b/lib/v2/local.js index 1304d3a..921464b 100644 --- a/lib/v2/local.js +++ b/lib/v2/local.js @@ -21,7 +21,7 @@ var dorita980 = function localV2 (user, password, host, emitIntervalTime) { rejectUnauthorized: false, protocolId: 'MQTT', protocolVersion: 4, - ciphers: process.env.ROBOT_CIPHERS || 'AES128-SHA256', + ciphers: process.env.ROBOT_CIPHERS || 'AES128-SHA256,TLS_AES_256_GCM_SHA384', clean: false, username: user, password: password