Page 1 of 1

preserve custom SSL certificate when updating

Posted: Tuesday 14 May 2019 10:04
by Hielkep
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

Re: preserve custom SSL certificate when updating

Posted: Monday 28 October 2019 7:56
by PHIL63
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

Re: preserve custom SSL certificate when updating

Posted: Tuesday 12 November 2019 4:28
by tobydeteckel
Just edit the "domoticz.sh" file in "/etc/init.d" map.

add..

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -sslcert /home/server/domoticz/server_cert1.pem"
and save your certificate named "server_cert1.pem"

when domoticz update the "server_cert1.pem" file wont be touched.

hopefully this will help you.

Re: preserve custom SSL certificate when updating

Posted: Tuesday 12 November 2019 6:12
by PHIL63
Thanks for this solution :)

Re: preserve custom SSL certificate when updating

Posted: Tuesday 12 November 2019 23:23
by tobydeteckel
Youre Welcome!