preserve custom SSL certificate when updating

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Hielkep
Posts: 11
Joined: Monday 28 January 2019 9:29
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

preserve custom SSL certificate when updating

Post 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
PHIL63
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

Post 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
tobydeteckel
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

Post 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.
PHIL63
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

Post by PHIL63 »

Thanks for this solution :)
tobydeteckel
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

Post by tobydeteckel »

Youre Welcome!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest