Page 1 of 1

-sslcert parameter ignored?

Posted: Thursday 26 April 2018 9:46
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"

Re: -sslcert parameter ignored?

Posted: Thursday 26 April 2018 20:13
by niki_lauda
My line =
"DAEMON_ARGS="$DAEMON_ARGS -www 8080 -loglevel=1 -sslwww 443 -sslcert /home/pi/domoticz/letsencrypt_server_cert.pem"

Re: -sslcert parameter ignored?

Posted: Monday 30 April 2018 15:06
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

Re: -sslcert parameter ignored?

Posted: Sunday 03 June 2018 20:55
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.