When i use my own SSL certificate in domoticz, the certificate is overwritten by the deafult one when using ./updatebeta command.
could there be an extra line added to updatebeta (and updaterelease) that copies an own certificate over the selfsigned one?
suggestion: when file custom_server_certificate.pem exists, then copy that one to server_certificate.pem.
or more work:
implement adding custom certificate in domoticz settings page
preserve custom SSL certificate when updating
Moderators: leecollings, remb0
-
- Posts: 19
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: preserve custom SSL certificate when updating
Hi,
Sorry to dig up an old subject, but it's painful in the long run to hand in the certificate every time.
If there is a way to not install the domoticz certificate when updating beta install.....
In Windows installation program adding a flag like "IfNotExists" on the installation line in Inno Setup for example.
Same thing on the Raspbian install if possible
Thanks
Sorry to dig up an old subject, but it's painful in the long run to hand in the certificate every time.
If there is a way to not install the domoticz certificate when updating beta install.....
In Windows installation program adding a flag like "IfNotExists" on the installation line in Inno Setup for example.
Same thing on the Raspbian install if possible

Thanks
-
- Posts: 12
- Joined: Wednesday 25 September 2019 14:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V12461
- Location: The Netherlands -Hilversum
- Contact:
Re: preserve custom SSL certificate when updating
Just edit the "domoticz.sh" file in "/etc/init.d" map.
add..
and save your certificate named "server_cert1.pem"
when domoticz update the "server_cert1.pem" file wont be touched.
hopefully this will help you.
add..
Code: Select all
DAEMON_ARGS="$DAEMON_ARGS -sslcert /home/server/domoticz/server_cert1.pem"
when domoticz update the "server_cert1.pem" file wont be touched.
hopefully this will help you.
-
- Posts: 19
- Joined: Wednesday 01 February 2017 8:21
- Target OS: Windows
- Domoticz version: Beta
- Location: France
- Contact:
Re: preserve custom SSL certificate when updating
Thanks for this solution 

-
- Posts: 12
- Joined: Wednesday 25 September 2019 14:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V12461
- Location: The Netherlands -Hilversum
- Contact:
Re: preserve custom SSL certificate when updating
Youre Welcome!
Who is online
Users browsing this forum: No registered users and 1 guest