arnecls / homebridge-bosch-alert-system

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

Help With Setting Up #4

Closed Jarvichi closed 2 years ago

Jarvichi commented 2 years ago

Hello, Firstly thank you for creating this plugin... I'm fairly adept at this stuff, and feel like I'm doing something wrong during setup step 5? Certificates all generated, and plugin looks like it starts up ok in Homebridge. When I control the accessory I get an error in the Homebridge terminal:

error during call to BSHC: Error: write EPROTO 1996274128:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1546:SSL alert number 46

at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16) { errno: -71, code: 'EPROTO', syscall: 'write' }

Like I say I think something isn't going right when I run through the set up process. I'm using the "Generate certificates yourself" method. My request.json file looks ok, I've pasted the content of the client-cert.pem - it was over multiple lines... so I collapsed that down... (maybe that's what I've done wrong) and I've made sure that the line looks like :

-----BEGIN CERTIFICATE-----\rCONTENT OF CERT\r-----END CERTIFICATE-----

Maybe that's where I've gone wrong. Assuming that's right, when I run the CURL script in step 5 I get no response displayed in the terminal...

I've pressed the button on the hub, which makes the lights brighter... I don't know for sure if there's a timeout on this action... am I supposed to hold the button down until it flashes instead?

The guide then says that it should now show up in the Bosch smartphone app... I've looked and can't see anything obvious, I was thinking that it would appear under the "Mobile Devices" menu in the "more" tab.

Also when I insert the cert & key into the plugin config should I retain the line breaks? After pasting the output of

base64 -i client-cert.pem # your encoded certificate base64 -i client-key.pem # your encoded client key

into the text boxes there are lots of spaces in the string.

If anyone can give me a pointer I'd appreciate it.

Jarvichi commented 2 years ago

Ok... I think I've got it working with the auto generation now...