-sslcert parameter ignored?

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Doomic
Posts: 15
Joined: Friday 13 January 2017 14:10
Target OS: Linux
Domoticz version:
Contact:

-sslcert parameter ignored?

Post by Doomic »

Version: 3.8153
Platform: Ubuntu 16.04.3

i am trying to implement another ssl certificate.. i know there are a lot of questions about it, but can't find my situation.
My problem is that it looks like -sslcert is ignored in the startup script.
for testing purpose, i renamed server_cert.pem to server_cert_test.pem. and edited the sh script (see below)
restart domoticz... but website is not running... in log there is no "TCPSERVER: shared server started...".
next i renamed file back to server_cert.pem, but kept the sh script the same (as below).. restart domoticz.. and now the site is running (including the log of the TCPServer started).

What am i missing, is it still supported the sslcert parameter? where to look?

Code: Select all

DAEMON=/usr/domoticz/$NAME
DAEMON_ARGS="-daemon"
DAEMON_ARGS="$DAEMON_ARGS -www 0"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 10003"
DEAMON_ARGS="$DAEMON_ARGS -sslcert /usr/domoticz/server_cert_test.pem"
DAEMON_ARGS="$DAEMON_ARGS -log /usr/domoticz/log.txt"
DAEMON_ARGS="$DAEMON_ARGS -syslog"
niki_lauda
Posts: 115
Joined: Saturday 31 August 2013 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Eindhoven (NL)
Contact:

Re: -sslcert parameter ignored?

Post by niki_lauda »

My line =
"DAEMON_ARGS="$DAEMON_ARGS -www 8080 -loglevel=1 -sslwww 443 -sslcert /home/pi/domoticz/letsencrypt_server_cert.pem"
Doomic
Posts: 15
Joined: Friday 13 January 2017 14:10
Target OS: Linux
Domoticz version:
Contact:

Re: -sslcert parameter ignored?

Post by Doomic »

combined -sslwww and -sslcert at 1 line, now it works.
don't understand whats different between one line and splitsing it to two lines...

next i want to include the pem file that is automaticly generated by Webmin letsencrypt... Won't work... but thats another issue for another time.
thanks for the help
rrozema
Posts: 470
Joined: Thursday 26 October 2017 13:37
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Delft
Contact:

Re: -sslcert parameter ignored?

Post by rrozema »

next i want to include the pem file that is automaticly generated by Webmin letsencrypt... Won't work... but thats another issue for another time.
Did you add the dhparams in the .pem file too? I missed that part at first too. Its in the very bottom of the instructions at http://www.domoticz.com/wiki/Native_sec ... ts_Encrypt how to do that. You need to generate the dhparams.pem file only once, then have it added every time in the script to put your <your certificates>.pem file together.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests