dorita980: Error while getting robot password

After running npm run getrobotpwd <ip> i got initial robot information including blid and then following error:

events.js:170
      throw er; // Unhandled 'error' event
      ^

Error: 1996351952:error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small:../deps/openssl/openssl/ssl/statem/statem_clnt.c:2159:

Emitted 'error' event at:
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! homebridge-roomba@1.0.1 getrobotpwd: `cd node_modules/dorita980 && npm install && node ./bin/getpassword.js "192.168.2.50"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the homebridge-roomba@1.0.1 getrobotpwd script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-07-16T16_39_17_608Z-debug.log

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

openssl: '1.1.1c'

pi@raspberrypi:~ $ node -p process.versions | grep openssl
  openssl: '1.0.2n'

I modified the script like this:

const client = tls.connect(8883, host, {rejectUnauthorized: false, ciphers: 'AES128-SHA256'}, () => {
    client.write(new Buffer(packet, 'hex'));
});