arnecls / homebridge-bosch-alert-system

Homebridge plugin for the Bosch Smart Home alerting system
Apache License 2.0
7 stars 1 forks source link

if restarting the homebridge server, the plugin stops working #9

Open marcoluciano81 opened 5 months ago

marcoluciano81 commented 5 months ago

Describe Your Problem: After the first successful config, I generate the certificates through the UI of homebridge (not using the SSH terminal) and it works perfectly. But if I restart the server, the plugin stops working, I assume because it cannot find the certificates. The certificates are saved in .txt format in the root directory of homebridge server, that I'm running on a Synology NAS. If I reconfigure again the plugin with the path of the .txt files, It seems it cannot find them.

Logs:

[3/17/2024, 12:53:14 AM] [Bosch] Error during call to BSHC: Error: write EPROTO 0058C8ADA67F0000:error:0A000412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1586:SSL alert number 42 at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16) { errno: -71, code: 'EPROTO', syscall: 'write' } [3/17/2024, 12:53:20 AM] [Bosch] Error during call to BSHC: Error: write EPROTO 0058C8ADA67F0000:error:0A000412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1586:SSL alert number 42

Plugin Config:

{ "name": "Bosch", "host": "192.168.1.155", "autoPair": true, "systemPassword": "XXXXXXXX", "platform": "BoschAlertHomebridgePlugin" }

tried also:

{ "name": "Bosch", "host": "192.168.1.155", "autoPair": false, "clientCert": "bosch-client-cert.txt", "clientKey": "bosch-client-key.txt", "systemPassword": "XXXX", "platform": "BoschAlertHomebridgePlugin" }

and in this case I get: [3/17/2024, 12:57:43 AM] [Bosch] error:0480006C:PEM routines::no start line [3/17/2024, 12:57:43 AM] [Bosch] error:0480006C:PEM routines::no start line

Screenshots:

Environment:

marcoluciano81 commented 5 months ago

@arnecls I know that you don't visit this plugin page often, but if you think about something, it would be very helpful :) thanks