Domoticz and native https problem Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc
Post Reply
dextm80
Posts: 138
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Domoticz and native https problem

Post by dextm80 » Sunday 25 November 2018 11:02

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
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

dextm80
Posts: 138
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: Domoticz and native https problem

Post by dextm80 » Sunday 25 November 2018 12:43

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?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

dextm80
Posts: 138
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: Domoticz and native https problem

Post by dextm80 » Wednesday 28 November 2018 17:01

help me please :(
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

User avatar
gizmocuz
Posts: 8721
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz and native https problem

Post by gizmocuz » Wednesday 28 November 2018 18: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
Quality outlives Quantity!

dextm80
Posts: 138
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: Domoticz and native https problem

Post by dextm80 » Thursday 29 November 2018 0:00

gizmocuz wrote:
Wednesday 28 November 2018 18: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!
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests