SSL Domoticz + Own domain + Cloudflare + UNIFI

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

Moderator: leecollings

Post Reply
rewil
Posts: 4
Joined: Friday 03 June 2022 17:16
Target OS: -
Domoticz version:
Contact:

SSL Domoticz + Own domain + Cloudflare + UNIFI

Post by rewil »

I have problem with SSL

Code: Select all

[ssl] https://name[.]com:8443  - ERR_SSL_PROTOCOL_ERROR
[no ssl] http://name[.]com:8443  - working ok
 http://name[.]com  - unify
 http://name[.]com:443  - unify

On router unifi foward port:

Code: Select all

From any 8443 > Foward IP 192[.]168[.]1[.]150 | foward port 8084 I Protocol Both

Cloudflare setup

Code: Select all

- full strict
- portzilla 
route url: name[.]com
route target: Proxies to a port on my domain
target port: 8443
Domoticz /etc/init[.]d/domoticz[.]sh (path default) / webserwer

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -www 8084"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
*port 443 changed to 8443 but not result. It used to work with these settings
Ssl file in /home/pi/domoticz/server_cert[.]pem downloaded from cloudflare "Orgin Server", with this schema:

-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN DH PARAMETERS-----
-----END DH PARAMETERS-----

KEY i Certificate ctrl+c /+v from cloudflare, and DH create via:

Code: Select all

cd /etc/ssl/certs
sudo openssl dhparam -out dhparam[.]pem 2048
sudo cat /etc/ssl/certs/dhparam[.]pem >> ~/domoticz/server_cert[.]pem
sudo /etc/init[.]d/domoticz[.]sh restart


domoticz logs are clear

Any idea how to debug this?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest