Ineffective settings of domoticz.conf on Fedora 32

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
przemhb
Posts: 32
Joined: Wednesday 12 September 2018 23:55
Target OS: Linux
Domoticz version:
Contact:

Ineffective settings of domoticz.conf on Fedora 32

Post by przemhb »

I would like to make it use Let's Encrypt generated certificate.

I've seen some guides instructing to copy contents of both fullcert.pem and privkey.pem to /var/lib/domoticz/domoticz.pem, which is being referenced by the domoticz.service. Other referenced variables use environment values defined in /etc/sysconfig/domoticz file.

The approach has some drawbacks due to the private key being duplicated in extra location:
- care must be taken to secure it,
- key copy must be updated on key renewal,
- key must be updated on Domoticz update as it gets overwritten.

I've found Domoticz configuration file:
/usr/share/domoticz/scripts/domoticz.conf
which allows to reference ssl_cert and ssl_key files. Pointing appropriate Let's Encrypt files there would eliminate all the drawbacks mentioned above.

Unfortunately contents of the file is ignored. Not only ssl_key and ssl_cert settings, but also as fundamental setting as http_port. Instead single SSLCERT value is used from the /etc/sysconfig/domoticz file.

Is there a way to simply reference Let's Encrypt key and cert files instead of creating copy of them?

I am running Domoticz on Fedora 32.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest