steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

HTTPS with self-signed certificate connection to OpenHab port 8443 would be nice. #86

Closed luiscampiz closed 3 years ago

luiscampiz commented 3 years ago

Is your feature request related to a problem? Please describe.

Currently when configuring an HTTPS connection, there is an error in the log and a reboot loop occurs.

Nice work, thanks

steilerDev commented 3 years ago

Hi @luiscampiz

The crash should no longer occur in 1.1.1, but connections will still not be possible. I think trusting self-signed certs is (as far as I understand it) something that needs to be configured on the nodeJS level. Unfortunately I am not an expert on this.

I have a self signed certificate and using oznu's homebridge docker image, where is specify NODE_EXTRA_CA_CERTS as an environmental variable, pointing to the CA certs of my self signed cert of OH. This works flawlessly.

Regards,

Frank