server_cert.pem

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
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

server_cert.pem

Post by emme »

Ciao,

For those users that have replaced the server_cert.pem with a valid one (where valid means relative to users own domain) could it be possible to include the copy of the valid cartificate in the updaterelease and updatebeta scripts?

it is quite annoyng to replace the file all the times :P

I've tried to change the updatebeta script, but it is overwritten in the download :P
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
Hielkep
Posts: 11
Joined: Monday 28 January 2019 9:29
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: server_cert.pem

Post by Hielkep »

what is have done as a workaround is:
- Make a copy of your custom certificate in domoticz dir (i used the name custom-server_cert.pem)
- make a file (i called it extra) in same dir as updatescript (i use updatebeta)
- put this text in it

Code: Select all

Echo "Copying custom SSH certificate and script changes....
cp custom-server_cert.pem server_cert.pem
cat extra >> updatebeta
and run this command once:

Code: Select all

cat extra >> updatebeta
and after this every time update script is run, it will add the extra lines to the script and copy your certificate
niki_lauda
Posts: 115
Joined: Saturday 31 August 2013 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Eindhoven (NL)
Contact:

Re: server_cert.pem

Post by niki_lauda »

emme wrote: Wednesday 15 May 2019 17:52 Ciao,

For those users that have replaced the server_cert.pem with a valid one (where valid means relative to users own domain) could it be possible to include the copy of the valid cartificate in the updaterelease and updatebeta scripts?

it is quite annoyng to replace the file all the times :P

I've tried to change the updatebeta script, but it is overwritten in the download :P
ciao
M
or you can edit the domoticz.sh in /etc/init.d and change the line to
DAEMON_ARGS="$DAEMON_ARGS -www 8080 -loglevel=1 -sslwww 443 -sslcert /home/pi/domoticz/letsencrypt_server_cert.pem"

User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: server_cert.pem

Post by emme »

wow...
you changed my day!!!!!
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests