# Accéder a Home Assistant depuis l’extérieur en HTTPS avec un NDD Freebox et Let's Encrypt

**URL:** <https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229>\
**Category:** Add-on\
**Tags:** accès-externe\
**Created:** [Juillet 3, 2020, 2:03 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229 "2020-07-03T14:03:11Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![jluc2808](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jluc2808](https://forum.hacf.fr/u/jluc2808)\
**Post date:** [Mars 7, 2023, 9:09 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/285 "2023-03-07T09:09:46Z")

</div>

idem même réponse Non-existent

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Mars 7, 2023, 9:13 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/286 "2023-03-07T09:13:23Z")

</div>

J’ai la bonne ip avec DNS cloudfare…

---

<div class="post-metadata">

**Author:** ![jluc2808](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jluc2808](https://forum.hacf.fr/u/jluc2808)\
**Post date:** [Mars 7, 2023, 9:14 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/287 "2023-03-07T09:14:45Z")

</div>

ça c’est bon, pourquoi chez moi c’est KO ?  
c’est une histoire de DNS google ?

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Mars 7, 2023, 9:17 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/288 "2023-03-07T09:17:08Z")

</div>

Non, redirige 80 vers 80 sur ton ip HA

---

<div class="post-metadata">

**Author:** ![jluc2808](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jluc2808](https://forum.hacf.fr/u/jluc2808)\
**Post date:** [Mars 7, 2023, 9:26 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/289 "2023-03-07T09:26:12Z")

</div>

bien, j’ai supprimé la redirection 80 vers 8123 (comme demandé avec add-on duck-dns)  
ajouté 80 vers 80 machine HA  
et je pense que c’est OK  
le log:

```auto
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/file-structure.sh
cont-init: info: /etc/cont-init.d/file-structure.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun lets-encrypt (no readiness notification)
s6-rc: info: service legacy-services successfully started
[10:22:13] INFO: Selected http verification
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for jluc2808ha.duckdns.org
Successfully received certificate.
Certificate is saved at: /data/letsencrypt/live/jluc2808ha.duckdns.org/fullchain.pem
Key is saved at: /data/letsencrypt/live/jluc2808ha.duckdns.org/privkey.pem
This certificate expires on 2023-06-05.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
 * Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

```

---

<div class="post-metadata">

**Author:** ![jluc2808](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jluc2808](https://forum.hacf.fr/u/jluc2808)\
**Post date:** [Mars 7, 2023, 9:49 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/290 "2023-03-07T09:49:48Z")

</div>

merci, j’ai terminé la procédure en mettant à jour internet et ajout dans config  
c’est OK maintenant  
est-ce que je peux supprimer la redirection 80 vers 80 machine HA ?  
et est-ce que je dois garder les 2 redirections 443 et 8123 vers 8123 ?  
comment je fais un renouvellement automatique du certificat sous RPI4 HAOS ?

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Mars 7, 2023, 10:40 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/291 "2023-03-07T10:40:32Z")

</div>

> [@jluc2808](#):
>
> comment je fais un renouvellement automatique du certificat sous RPI4 HAOS ?

Tu dois faire en sorte de démarrer régulièrement Let’s Encrypt.  
Par exemple avec une automatisation, à 01h00:

```auto
- id: '1678199349348'
  alias: DemarrerLetsEncrypt
  description: ''
  trigger:
  - platform: time
    at: 01:00:00
  condition: []
  action:
  - service: hassio.addon_start
    data:
      addon: core_letsencrypt
  mode: single

```

Mais Let’s Encrypt a besoin de la redirection 80, pour renouveller le certificat.

> [@jluc2808](#):
>
> et est-ce que je dois garder les 2 redirections 443 et 8123 vers 8123 ?

Non, tu peux en garder une seule, à toi de choisir celle que tu veux utiliser.

---

<div class="post-metadata">

**Author:** ![jluc2808](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jluc2808](https://forum.hacf.fr/u/jluc2808)\
**Post date:** [Mars 7, 2023, 2:18 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/292 "2023-03-07T14:18:05Z")

</div>

pardon de la question probablement très très basique  
le code que tu as mis , tu l’ajoutes ou ? dans configuration.yaml ?

c’est ce que j’ai fait et j’ai une volée d’erreur  
Integration error: mode - Integration ‹&nbsp;mode&nbsp;› not found.  
Integration error: alias - Integration ‹&nbsp;alias&nbsp;› not found.  
Integration error: condition - Integration ‹&nbsp;condition&nbsp;› not found.  
Integration error: trigger - Integration ‹&nbsp;trigger&nbsp;› not found.  
Integration error: description - Integration ‹&nbsp;description&nbsp;› not found.  
Integration error: action - Integration ‹&nbsp;action&nbsp;› not found.

donc je pense que c’est pas là ou que j’ai oublié quelque chose  
merci de tes réponses dans tous les cas

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Mars 7, 2023, 2:31 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/293 "2023-03-07T14:31:45Z")

</div>

> [@Giga77](#):
>
> automatisation

ç’est le fichier automations.yaml  
J’ai édité mon code, donc un copié-collé devrait fonctionner.

Mais le plus simple, ç’est que tu te fasses une automatisation via l’interface:  
Paramètres → Automatisations et scènes  
Dans la page Automatisation, clique sur Créer une automatisation et configure en fonction de tes besoins.

---

<div class="post-metadata">

**Author:** ![jluc2808](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jluc2808](https://forum.hacf.fr/u/jluc2808)\
**Post date:** [Mars 7, 2023, 4:31 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/294 "2023-03-07T16:31:47Z")

</div>

OK merci bien de cette partie, j’ai fait l’automate via l’interface, puis j’ai controlé dans le yaml , c’est exactement ce que tu as mis donc ça devrait le faire

---

<div class="post-metadata">

**Author:** ![thomasb](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@thomasb](https://forum.hacf.fr/u/thomasb)\
**Post date:** [Mars 21, 2023, 9:35 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/295 "2023-03-21T09:35:52Z")

</div>

Bonjour,

Fraichement arrivé sur HA depuis 48 heures, j’ai suivi le tuto pour accéder en externe via mon nom de domaine OVH.

j’arrive à accéder à HA via mon domaine http\*s://www.mondomaine. fr:8123 sur mon Iphone via Safari et l’appilcation.

Par contre, ca ne passe pas via le navigateur PC Chrome…

Des pistes ?

Bonne journée.

---

<div class="post-metadata">

**Author:** ![McFly](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mcfly/32/1077_2.png) [@McFly](https://forum.hacf.fr/u/McFly)\
**Post date:** [Mars 21, 2023, 12:38 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/296 "2023-03-21T12:38:34Z")

</div>

as tu créé un certificat ssl ? ou a tu simplement redirigé ton ndd vers ton ip ?

---

<div class="post-metadata">

**Author:** ![thomasb](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@thomasb](https://forum.hacf.fr/u/thomasb)\
**Post date:** [Mars 21, 2023, 12:51 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/297 "2023-03-21T12:51:49Z")

</div>

Bonjour,

J’ai bien créer un certificat SSL car j’accède bien en https depuis mon téléphone

---

<div class="post-metadata">

**Author:** ![McFly](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mcfly/32/1077_2.png) [@McFly](https://forum.hacf.fr/u/McFly)\
**Post date:** [Mars 21, 2023, 1:07 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/298 "2023-03-21T13:07:01Z")

</div>

Et le certificat est bien valide ? bizarre que cela marche avec Safari, mais pas avec Chrome. As-tu essayé en Navigation privée ?

---

<div class="post-metadata">

**Author:** ![thomasb](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@thomasb](https://forum.hacf.fr/u/thomasb)\
**Post date:** [Mars 21, 2023, 1:13 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/299 "2023-03-21T13:13:58Z")

</div>

C’est pareil. Après, je suis au boulot, peut être que ca bloque avec le VPN.

Mais pour le même nom de domaine (sans le «&nbsp;:8123&nbsp;»), avant cela fonctionnait car j’utilisais déjà ce ndd via Jeedom.

Je testerai chez moi et je te redirais.

---

<div class="post-metadata">

**Author:** ![thomasb](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@thomasb](https://forum.hacf.fr/u/thomasb)\
**Post date:** [Mars 21, 2023, 1:16 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/300 "2023-03-21T13:16:24Z")

</div>

Par contre, en vérifiant le certificat, j'obtiens ce retour  
 ![image](https://forum.hacf.fr/uploads/default/original/3X/4/3/43d194afff646d2e58a0618e461a53afa09aec71.png)  
je comprends pas pourquoi j'arrive alors à me connecter sans problème en 4G via mon téléphone et en https....

---

<div class="post-metadata">

**Author:** ![McFly](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mcfly/32/1077_2.png) [@McFly](https://forum.hacf.fr/u/McFly)\
**Post date:** [Mars 21, 2023, 3:15 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/301 "2023-03-21T15:15:12Z")

</div>

alors je sais que tous les navigateurs non pas la même sensibilités a la sécurité lors de la connexion a un site web.

C’est peut etre pour ça.

tu a généré ton certificat comment ?

---

<div class="post-metadata">

**Author:** ![thomasb](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@thomasb](https://forum.hacf.fr/u/thomasb)\
**Post date:** [Mars 21, 2023, 3:18 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/302 "2023-03-21T15:18:46Z")

</div>

via let’s encrypt sur HA

---

<div class="post-metadata">

**Author:** ![McFly](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mcfly/32/1077_2.png) [@McFly](https://forum.hacf.fr/u/McFly)\
**Post date:** [Mars 21, 2023, 3:44 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/303 "2023-03-21T15:44:03Z")

</div>

as tu bien mis les lignes de code dans le configuration. yaml ?

```auto
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

```

---

<div class="post-metadata">

**Author:** ![thomasb](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@thomasb](https://forum.hacf.fr/u/thomasb)\
**Post date:** [Mars 21, 2023, 3:51 UTC](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229/304 "2023-03-21T15:51:41Z")

</div>

oui, je test à la maison et j’envoi des captures ce soir, merci encore de ton temps

[Page précédente](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229.md?page=14)

[Page suivante](https://forum.hacf.fr/t/acceder-a-home-assistant-depuis-l-exterieur-en-https-avec-un-ndd-freebox-et-lets-encrypt/229.md?page=16)
