tomekkleszcz / homebridge-electrolux-devices

Homebridge plugin for Electrolux devices
Apache License 2.0
21 stars 4 forks source link

Couldn't not sign in to Electrolux: self signed certificate in certificate chain #59

Open andreybernovski opened 5 months ago

andreybernovski commented 5 months ago

With version 0.2.0 of the plugin (but even with the previous one before), I am getting the following on logs:

03/04/2024, 20:06:29 AEG PurifierHomebridgeElectroluxDevicesFetching JWT token...
03/04/2024, 20:06:29 AEG PurifierHomebridgeElectroluxDevicesWARNINGCouldn't not sign in to Electrolux: self signed certificate in certificate chain 

It's only following the steps in this comment https://github.com/tomekkleszcz/homebridge-electrolux-devices/issues/28#issuecomment-1866127955 from a previously closed ticket that allow me to get the plugin to connect.

It seems a newer certificate is needed to be bundled.

tomekkleszcz commented 5 months ago

@andreybernovski I've just signed in with the current certificate on my local HB instance, so I think the issue is not a certificate. Which country do you live in? Does your HB connects to through proxy?

As an escape hatch, you can put NODE_TLS_REJECT_UNAUTHORIZED=1 into the HB's NODE_OPTIONS field to ignore the error.