https - certificat ssl
Publié : 23 mars 2018, 15:00
Bonjour,
Je rencontre quelques difficultés pour "sécuriser" domoticz.
Mon dz tourne sur raspberry.
Je possède un NAS Synology.
Via le NAS j'ai généré un certificat let's encrypt.
j'ai 3 fichiers : cert.pem - chain.pem - privkey.pem
j'ai copié les fichiers privkey.pem et chain.pem sous /domoticz/ sur le raspberry et suivi la procédure : http://www.domoticz.com/wiki/Native_sec ... ts_Encrypt
soit :
dans domoticz.sh :
Et là...c'est le drame :
au redémarrage j'ai un petit
je précise, mon fichier server_cert.pem à la forme, dans l'ordre, de ceci :
J'ai vu un problème similaire sur le forum anglais mais pas vraiment de réponse.
si l'un de vous à la solution merci par avance !!
Je rencontre quelques difficultés pour "sécuriser" domoticz.
Mon dz tourne sur raspberry.
Je possède un NAS Synology.
Via le NAS j'ai généré un certificat let's encrypt.
j'ai 3 fichiers : cert.pem - chain.pem - privkey.pem
j'ai copié les fichiers privkey.pem et chain.pem sous /domoticz/ sur le raspberry et suivi la procédure : http://www.domoticz.com/wiki/Native_sec ... ts_Encrypt
soit :
Code : Tout sélectionner
sudo rm ~/domoticz/server_cert.pem
sudo cat ~/domoticz/privkey.pem >> ~/domoticz/server_cert.pem
sudo cat ~/domoticz/chain.pem >> ~/domoticz/server_cert.pem
sudo cat /etc/ssl/certs/dhparam.pem >> ~/domoticz/server_cert.pem
Code : Tout sélectionner
DAEMON_ARGS="-daemon -www 8080 -sslwww 443"
DAEMON_ARGS="$DAEMON_ARGS -sslcert /home/pi/domoticz/server_cert.pem"
au redémarrage j'ai un petit
Code : Tout sélectionner
2018-03-23 13:28:39.325 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: use_private_key_file: key values mismatch
2018-03-23 13:28:39.325 Error: WebServer(SSL) check privileges for opening ports below 1024
Code : Tout sélectionner
-----BEGIN PRIVATE KEY-----
private key
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
the actual certificate
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
one or more chain certificates depending on your root CA
-----END CERTIFICATE-----
-----BEGIN DH PARAMETERS-----
-----END DH PARAMETERS-----
si l'un de vous à la solution merci par avance !!
