Page 1 of 1

Domoticz and native https problem

Posted: Sunday 25 November 2018 10:02
by dextm80
Hi guy, i try to access my domoticz server by https://mydomain.com:444 but at the beginning all gone ok, after x access domoticz gone offline with this log error:

Code: Select all

Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 444: use_certificate_chain_file: no start line
Error: WebServer(SSL) check privileges for opening ports below 1024

This is my /etc/init.d/domoticz.sh

Code: Select all

DAEMON=/home/x/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8888"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 444"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
DAEMON_ARGS="$DAEMON_ARGS -sslcert /home/x/domoticz/server_cert.pem"
Port 8888

Code: Select all

 Status: WebServer(HTTP) started on address: :: with port 8888
I follow this guide https://www.domoticz.com/wiki/Native_se ... ts_Encrypt (remember at the beginning all gone ok)
Can you help me to solve it?

Thanks

Re: Domoticz and native https problem

Posted: Sunday 25 November 2018 11:43
by dextm80
i found the problem. When get update beta server_cert.perm have to be replace with new cert.

How can i get update and give right cert? I've to do the guide every time?

Re: Domoticz and native https problem

Posted: Wednesday 28 November 2018 16:01
by dextm80
help me please :(

Re: Domoticz and native https problem

Posted: Wednesday 28 November 2018 17:33
by gizmocuz
You can edit the service file (/etc/init.d/domoticz.sh) and specify a certificate file here (as commandline argument) and store this certificate under a different filename in your domoticz folder

Re: Domoticz and native https problem

Posted: Wednesday 28 November 2018 23:00
by dextm80
gizmocuz wrote: Wednesday 28 November 2018 17:33 You can edit the service file (/etc/init.d/domoticz.sh) and specify a certificate file here (as commandline argument) and store this certificate under a different filename in your domoticz folder
thank you @gizmocuz you have solve my problem!