plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[enhancement]: node 24.5.0 supports PKCS1 with padding

Open Uzlopak opened this issue 6 months ago • 6 comments

Describe the solution you'd like

Good News everyone:

NodeJs upgraded OpenSSL to 3.5.1, and shipped it with nodejs version 24.5.0. As such the conditions to allow again PKCS1 with padding natively are met. I tested if PKCS1 with padding is possible, and the test passed. I am not using eufy products, but I assume, that you are interested in this development.

https://github.com/nodejs/node/pull/59234

The PR is tagged with dont-land-on-v20.x and lts-watch-v22.x. So we can assume, that it will potentially backported to v22, but not to v20.

Have fun :)

Uzlopak avatar Aug 01 '25 21:08 Uzlopak

I just noticed Homebridge Docker beta-2025-08-26 support node 24.6.0 hope it helps:

Node.js Version: v24.6.0
Node.js Path: /opt/homebridge/bin/node
Plugin Path: /var/lib/homebridge/node_modules

Update Node.js: hb-service update-node

Install Plugin: hb-service add homebridge-plugin-name
Remove Plugin: hb-service remove homebridge-plugin-name

root@hpe:/homebridge $ openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

gwang-JNPR avatar Aug 27 '25 23:08 gwang-JNPR

@gwang-JNPR

Nodejs comes with its own bundled openssl. Your openssl version is showing the version of openssl in your system.

To see which openssl version is bundled with nodejs, you can do: node -e "console.log(process.versions.openssl)"

Uzlopak avatar Aug 28 '25 05:08 Uzlopak

I can confirm, upgrading to 24.8.0 and it is working.

also pi@homebridge:/var/lib/homebridge $ node -e "console.log(process.versions.openssl)" 3.5.2 pi@homebridge:/var/lib/homebridge $

kats1123 avatar Sep 20 '25 15:09 kats1123

How can I install Node 24.8.0 with homebridge 1.11.0?

webdandy avatar Sep 20 '25 17:09 webdandy

Warning: this is not an official way. This is just what I did. I don’t know if it’s right I don’t know if I messed up my Homebridge instance for the rest of time. This made sense to me so I did it. Do at your own risk.

It depends on what platform you’re on. What I ended up doing was using this command:

sudo hb-service update-node 24

on a raspberry pi. This installed into the regular user node, then I just use some commands to copy the information over into homebridge:

sudo cp /usr/bin/node /opt/homebridge/bin/node sudo cp /usr/bin/npm /opt/homebridge/bin/npm sudo cp /usr/bin/npx /opt/homebridge/bin/npx

And verify with

/opt/homebridge/bin/node -v /opt/homebridge/bin/npm -v /opt/homebridge/bin/npx -v

You should see: v24.8.0 11.6.0 ...

And finally rebuild with this command to make sure it uses the right version:

sudo env PATH=/opt/homebridge/bin:$PATH hb-service rebuild

And restart: sudo systemctl restart homebridge

Everything seems to be working perfectly so far, I only have five plug-ins tho.

kats1123 avatar Sep 20 '25 17:09 kats1123

Thanks!

hb-service update-node 24.8.0

Seems to work also on my site.

webdandy avatar Sep 20 '25 17:09 webdandy