Page 1 sur 2
probleme accès Domoticz en https
Publié : 27 mars 2021, 15:04
par dartflag
Bonjour,
je dois me résoudre a poser la question car après plusieurs jours de recherche. je n'arrive toujours pas a lancer Domoticz en https
j'utilise actuellement l'accès a mon Domoticz en http port 8080, car je ne sais pas comment le faire fonctionner le 443.
Ma configuration, Raspbian GNU/Linux 10 (buster)
Ca semble fonctionner en local sur mon Mac Safari, mais sur iPhone/iPad, j'ai Domoticz offline. Il semble que depuis la dernière version IOS, il soit nécessaire d'avoir un certificat réel.
J'ai donc tenté, de suivre les tutoriels pour l'utilisation de letsencrypt, mais j'obtiens que mon système n'est pas compatible? je suis un peu débutant dans le domaine, donc je galère un peu.
sudo ./letsencrypt-auto
Skipping bootstrap because certbot-auto is deprecated on this system.
Your system is not supported by certbot-auto anymore.
Certbot cannot be installed.
Please visit
https://certbot.eff.org/ to check for other alternatives.
que dois faire pour faire pour accéder a Domoticz depuis mon iPhone en https?
existe t il un auto simple et complet pour installer un certificat valide?
d'avance merci de votre aide
Fred
Re: probleme accès Domoticz en https
Publié : 27 mars 2021, 19:23
par Keros
Tu as suivi ces instructions :
https://certbot.eff.org/lets-encrypt/debianbuster-nginx ?
J'y comprends qu'il faut désinstaller le Certbot par défaut pour le réinstaller ensuite. Tu l'as fait ?
Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 10:25
par dartflag
effectivement j'ai tenté de suivre le tutoriel, mais n'était que débutant je me perd un peu dans les commandes
j'arrive a ca
pi@raspberrypi:/ $ sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache executable apache2ctl')
pi@raspberrypi:/ $
Domoticz tourne bien sur apache?
Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 10:50
par Keros
DomoticZ intègre son propre serveur web
It uses it's own embedded web server, written in C++, for efficient execution and to avoid dependencies.
Source
Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 11:40
par dartflag
et bien je crois que j'ai réussi
j'arrive maintenant a accéder a mon domoticz en https depuis mon iPhone et iPad.. offline a disparu
un grand merci pour ton aide
Fred
Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 12:05
par Keros
Tant mieux
Bonne continuation
Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 12:23
par dartflag
j'ai écris un peu vite
j'ai voulu désactiver le http 8080. Ne sachant pas comment faire, je pensais mettre en commentaire
"DAEMON_ARGS="$DAEMON_ARGS -www 8080""
dans le fichier Domoticz.sh, mais ca ne semble pas ca. Et je ne sais pas si c'est lieu, mais mon accès SSH ne fonctionne plus depuis mon iPhone

Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 15:47
par dartflag
en essayant de refaire la procédure, je coince sur
pi@raspberrypi:~ $ sudo certbot certonly –webroot
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: –webroot
il ne reconnait pas l'argument webroot?
Re: probleme accès Domoticz en https
Publié : 28 mars 2021, 20:08
par dartflag
et bien après avoir gratté pas mal, je pense que j'ai enfin réussi
chez moi la commande:
sudo certbot certonly --webroot ne fonctionne pas. pour une raison que je ne maitrise pas.
je suis donc passé par la commande
sudo certbot certonly --standalone
j'ai ainsi réussi a créer le certificat et le copier dans le répertoire avec les commandes suivantes
sudo cat /etc/letsencrypt/live/nom-de-domaine.com/privkey.pem >> ~/domoticz/server_cert.pem
sudo cat /etc/letsencrypt/live/nom-de-domaine.com/fullchain.pem >> ~/domoticz/server_cert.pem
sudo /etc/init.d/domoticz.sh restart
Re: probleme accès Domoticz en https
Publié : 14 juin 2021, 23:57
par garycooper
J'essaie inlassablement de faire un accès en https car jusque là j'accéder par le seul http et je commence à avoir des problèmes d'accès sur chrome du fait de l'absence de sécurité.
Je bloque complet car les tutos ne semblent plus fonctionner avec cerbot. J'ai donc tenté avec les liens donnés dans ce post en voulant installer avec apache mais j'ai le message d'erreur suivant :
pi@Domoticz:~ $ sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): domoticz-garycooper.ddns.net
Requesting a certificate for domoticz-garycooper.ddns.net
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: domoticz-garycooper.ddns.net
Type: connection
Detail: Fetching
http://xxxxxx-xxxxxxx.ddns.net/.well-kn ... XVEjLqmy3Y: Timeout during connect (likely firewall problem)
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at
https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
Je ne sais pas si cela a de l'importance mais le port local http que j'avais choisi pour l'installation de domoticz est "1981" et le https est "1982".