Page 1 of 1

server_cert.pem

Posted: Wednesday 15 May 2019 17:52
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

Re: server_cert.pem

Posted: Friday 17 May 2019 15:06
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

Re: server_cert.pem

Posted: Saturday 20 July 2019 17:56
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"


Re: server_cert.pem

Posted: Monday 22 July 2019 8:08
by emme
wow...
you changed my day!!!!!