Re: Erreur SSL
Publié : 24 déc. 2020, 16:13
Oui c'est normal.jexbond a écrit : 24 déc. 2020, 15:11
Mais le navigateur me dit toujours que la connexion n'est pas sécurisée et le https est barré.
Est ce normal ?
DZ dispose d'un certificat auto-signé qui n'a donc pas de relation avec une autorité de certification valide, d'où l'avertissement de ton navigateur.
Suit le conseil de Patrice et crée un certificat valide, il y a des posts ici pour y parvenir.
Antori91 a écrit : 24 déc. 2020, 14:14Ceci est un problème signalé par Domoticz à son démarrage, à savoir le port 443 serait déjà utilisé par un autre programme que Domoticz.jexbond a écrit : 21 déc. 2020, 14:23 2020-12-21 03:00:17.580 Error: Exception starting shared server: bind: Address already in use
Pour éviter l'échec du démarrage en pareil cas, j'ai fait un script shell qui tue les tâches qui utilisent les ports 443 et 8080.
Bien souvent ce sont des appels à l'API json ou autres qui "attendent" une information de la part de DZ, mais comme celui-ci n'est pas lancé, ils peuvent attendre longtemps !
A lancer par root avec sudo par exemple.
Code : Tout sélectionner
#!/bin/bash
chk_ltn_job () {
JOB=`netstat -tunlp |grep -w "8080\|443" | awk -FLISTEN '{print $2}'`
if [[ $JOB == *"domoticz"* ]]; then
echo "domoticz : no action"
LOOP=0
else
PID=`echo ${JOB} | awk -F/ '{print $1}'`
if [[ "1"$PID == "1" ]]; then
echo "No other listening process, DZ can start."
service domoticz.sh restart
LOOP=0
else
echo "kill job #"$PID
kill $PID
fi
fi
}
LOOP=1
while [[ $LOOP -eq 1 ]]
do
chk_ltn_job
done