# Problème Renouvellement certificat duckdns let's encrypt

**URL:** <https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580>\
**Category:** Entraide Home Assistant\
**Tags:** aide, duckdns\
**Created:** [Septembre 30, 2024, 8:44 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580 "2024-09-30T20:44:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Jacquot](https://forum.hacf.fr/user_avatar/forum.hacf.fr/olivier_jacquot/32/71108_2.png) [@Olivier\_Jacquot](https://forum.hacf.fr/u/Olivier_Jacquot)\
**Post date:** [Septembre 30, 2024, 8:44 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/1 "2024-09-30T20:44:37Z")

</div>

Bonjour,

J’ai installé Duck DNS le 01/07 avec Letsencrypt et tout fonctionnait bien jusqu’au 29/09 !

Je ne peux plus accéder à HA depuis extérieur en https. J’ai un message qui m’indique que mon certificat n’est plus valide. Je le vois bien ds les logs (cf. plus bas).

J’ai renouvelé mon token ds Duck DNS, j’ai mis le nouveau ds le YAML de Duck DNS mais cela ne change rien. J’arrive à accéder en http avec Firefox.

Les logs Duck DNS

```auto
[22:20:08] INFO: Renew certificate for domains: xxxx-xxx.duckdns.org and aliases: 
# INFO: Using main config file /data/workdir/config
Processing xxxx-xxx.duckdns.org
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Sep 29 19:12:52 2024 GMT (Less than 30 days). Renewing!
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 1 authorizations URLs from the CA
 + Handling authorization for xxxxx-xxxxx.duckdns.org
 + 1 pending challenge(s)
 + Deploying challenge tokens...
OK + Responding to challenge for xxxxx-xxxxx.duckdns.org authorization...
 + Cleaning challenge tokens...
OK + Challenge validation has failed :(
ERROR: Challenge is invalid! (returned: invalid) (result: ["type"]	"dns-01"
["url"]	"https://acme-v02.api.letsencrypt.org/acme/chall-v3/xxxxxxxxxxxxxxx"
["status"]	"invalid"
["validated"]	"2024-09-30T20:20:17Z"
["error","type"]	"urn:ietf:params:acme:error:unauthorized"
["error","detail"]	"During secondary validation: Incorrect TXT record \"\" found at _acme-challenge.xxxx-xxx.duckdns.org"
["error","status"]	403
["error"]	{"type":"urn:ietf:params:acme:error:unauthorized","detail":"During secondary validation: Incorrect TXT record \"\" found at _acme-challenge.xxxx-xxx.duckdns.org","status":403}
["token"]	"xxxxxxxxxxxxxxxxxxxxx2siOj0QRWtQ"
["validationRecord",0,"hostname"]	"xxxx-xxx.duckdns.org"
["validationRecord",0]	{"hostname":"xxxx-xxx.duckdns.org"}
["validationRecord"]	[{"hostname":"xxxx-xxx.duckdns.org"}])

```

Fichier YAML Duck DNS

```auto
domains:
  - xxxx-xxxxx.duckdns.org
token: xxxxxxxxxxxxxxxxxxxx9070b353a
aliases: []
lets_encrypt:
  accept_terms: true
  algo: secp384r1
  certfile: fullchain.pem
  keyfile: privkey.pem
seconds: 300

```

Merci pour vos conseils - j’ai cherché sur le forum mais je n’ai trouvé la solution.

Pops

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Septembre 30, 2024, 8:52 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/2 "2024-09-30T20:52:53Z")

</div>

Salut  
Tu utilises duckdns ou letd encrypt  
Car duck DNS gère le renouvellement du certificat ce que ne fais pas lets encrypt mais il existe un blueprint pour relancer l’addon let’s encrypt

Si tu viens de renouveller ton certificat  
Tente de te connecter en navigation privée

Édit: en ce moment duckdns a de gros soucis ce qui peut aussi explique cela

---

<div class="post-metadata">

**Author:** ![Olivier\_Jacquot](https://forum.hacf.fr/user_avatar/forum.hacf.fr/olivier_jacquot/32/71108_2.png) [@Olivier\_Jacquot](https://forum.hacf.fr/u/Olivier_Jacquot)\
**Post date:** [Septembre 30, 2024, 9:09 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/3 "2024-09-30T21:09:12Z")

</div>

Salut  
Je n’ai pas l’add on let’s encrypt d’installer, seulement duck DNS.  
J’ai essayé en navigation privée et cela ne fonctionne pas avec chrome mais avec firefox cela fonctionne en local. Je vais attendre et voir ce qu’il se passe.  
Merci en tout cas

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Septembre 30, 2024, 9:11 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/4 "2024-09-30T21:11:31Z")

</div>

Regarde les logs de l’addon duckdns

---

<div class="post-metadata">

**Author:** ![Olivier\_Jacquot](https://forum.hacf.fr/user_avatar/forum.hacf.fr/olivier_jacquot/32/71108_2.png) [@Olivier\_Jacquot](https://forum.hacf.fr/u/Olivier_Jacquot)\
**Post date:** [Octobre 1, 2024, 6:37 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/5 "2024-10-01T06:37:11Z")

</div>

Ils sont dans le message au début de ce fil.

---

<div class="post-metadata">

**Author:** ![Olivier\_Jacquot](https://forum.hacf.fr/user_avatar/forum.hacf.fr/olivier_jacquot/32/71108_2.png) [@Olivier\_Jacquot](https://forum.hacf.fr/u/Olivier_Jacquot)\
**Post date:** [Octobre 1, 2024, 6:38 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/6 "2024-10-01T06:38:09Z")

</div>

> [@Olivier\_Jacquot](#):
>
> ```auto
> OK + Challenge validation has failed :(
> ERROR: Challenge is invalid! (returned: invalid) (result: ["type"]	"dns-01"
> ["url"]	"https://acme-v02.api.letsencrypt.org/acme/chall-v3/xxxxxxxxxxxxxxx"
> ["status"]	"invalid"
> ["validated"]	"2024-09-30T20:20:17Z"
> ["error","type"]	"urn:ietf:params:acme:error:unauthorized"
> ["error","detail"]	"During secondary validation: Incorrect TXT record \"\" found at _acme-challenge.xxxx-xxx.duckdns.org"
> ["error","status"]	403
> ["error"]	{"type":"urn:ietf:params:acme:error:unauthorized","detail":"During secondary validation: Incorrect TXT record \"\" found at _acme-challenge.xxxx-xxx.duckdns.org","status":403}
> ["token"]	"xxxxxxxxxxxxxxxxxxxxx2siOj0QRWtQ"
> ["validationRecord",0,"hostname"]	"xxxx-xxx.duckdns.org"
> ["validationRecord",0]	{"hostname":"xxxx-xxx.duckdns.org"}
> ["validationRecord"]	[{"hostname":
> 
> ```

Le souci vient de la date du certificat d’après moi

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Octobre 1, 2024, 8:37 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/7 "2024-10-01T08:37:14Z")

</div>

le soucis vient de chez duckdns tu as rien a faire

> [@Olivier\_Jacquot](#):
>
> `Incorrect TXT record \"\" found at _acme-challenge.xxxx-xxx.duckdns.org"`

juste a acheter un vrai nom de domaine chez un vrai registrar chez ovh un .ovh c’est 4€ par an

---

<div class="post-metadata">

**Author:** ![Olivier\_Jacquot](https://forum.hacf.fr/user_avatar/forum.hacf.fr/olivier_jacquot/32/71108_2.png) [@Olivier\_Jacquot](https://forum.hacf.fr/u/Olivier_Jacquot)\
**Post date:** [Octobre 1, 2024, 6:33 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/8 "2024-10-01T18:33:53Z")

</div>

Merci pour l’info - mais une fois que j’ai le nom de domaine xxxxx.ovh, je dois encore utiliser letsencrypt ou j’ai juste à remplacer ds les fichiers config mon nouveau nom de domaine à la place de [xxxxx.duckdns.org](http://xxxxx.duckdns.org) ?

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Octobre 1, 2024, 6:49 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/9 "2024-10-01T18:49:48Z")

</div>

Il faut utiliser l’addon let’s encrypt

Duckdns ne fonctionne qu’avec les domaines duckdns  
Il faudra ouvrir sur ta box le port 80 vers ton serveur HA pour la création du certificat

---

<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:** [Octobre 1, 2024, 7:09 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/10 "2024-10-01T19:09:39Z")

</div>

Salut

> [@ddfdom](#):
>
> Il faudra ouvrir sur ta box le port 80 vers ton serveur HA pour la création du certificat

Ou utiliser le challenge DNS 😜

---

<div class="post-metadata">

**Author:** ![Dan92](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@Dan92](https://forum.hacf.fr/u/Dan92)\
**Post date:** [Octobre 1, 2024, 7:19 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/11 "2024-10-01T19:19:11Z")

</div>

Ou passer par NPM 😉

---

<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:** [Octobre 1, 2024, 7:29 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/12 "2024-10-01T19:29:14Z")

</div>

certificat https et reverse proxy sont 2 choses différentes  
NPM a aussi besoin de let’s encrypt…

---

<div class="post-metadata">

**Author:** ![Dan92](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@Dan92](https://forum.hacf.fr/u/Dan92)\
**Post date:** [Octobre 1, 2024, 7:46 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/13 "2024-10-01T19:46:39Z")

</div>

Je n’ai jamais dis le contraire.

Simplement je ne connais plus grand monde qui ne passe pas par un reverse proxy.

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Octobre 1, 2024, 8:05 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/14 "2024-10-01T20:05:37Z")

</div>

Enfin LE est intégré à NPM rien à installer en plus

Avant d’activer le challenge DNS ont vas déjà faire simple hein 😅

---

<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:** [Octobre 1, 2024, 8:08 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/15 "2024-10-01T20:08:41Z")

</div>

> [@ddfdom](#):
>
> Avant d’activer le challenge DNS ont vas déjà faire simple hein

Tu trouves plus simple d'ouvrir le port 80 que de faire le challenge DNS ? 😅

---

<div class="post-metadata">

**Author:** ![Olivier\_Jacquot](https://forum.hacf.fr/user_avatar/forum.hacf.fr/olivier_jacquot/32/71108_2.png) [@Olivier\_Jacquot](https://forum.hacf.fr/u/Olivier_Jacquot)\
**Post date:** [Octobre 1, 2024, 8:09 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/16 "2024-10-01T20:09:07Z")

</div>

Merci pour vos challenges !  
Auriez vous un tuto à me recommander ? 😜

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Octobre 1, 2024, 8:12 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/17 "2024-10-01T20:12:27Z")

</div>

Chez OVH oui  
Il faut aller créer des token dans l’API OVH  
Faire du nat dans la box il l’a déjà fait puisqu’il avait déjà un accès distant

---

<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:** [Octobre 1, 2024, 8:18 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/18 "2024-10-01T20:18:58Z")

</div>

> [@Olivier\_Jacquot](#):
>
> Auriez vous un tuto à me recommander ?

Supprime DuckDNS  
Ferme le port 80 de ta box  
Créer des token chez OVH : [Espace client - OVHcloud](https://api.ovh.com/createToken/)  
installe Let's encrypt  
configure let's encrypt en lisant la documentation 🙂

 ![image](https://forum.hacf.fr/uploads/default/original/3X/f/e/febb472763687b3432bf76345c63d9866484fbc4.png)

---

<div class="post-metadata">

**Author:** ![ddfdom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/ddfdom/32/137369_2.png) [@ddfdom](https://forum.hacf.fr/u/ddfdom)\
**Post date:** [Octobre 1, 2024, 8:20 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/19 "2024-10-01T20:20:04Z")

</div>

> [@Giga77](#):
>
> Ferme les ports de ta box

Enfin pas tous les ports hein

---

<div class="post-metadata">

**Author:** ![githubpreny](https://forum.hacf.fr/user_avatar/forum.hacf.fr/githubpreny/32/79689_2.png) [@githubpreny](https://forum.hacf.fr/u/githubpreny)\
**Post date:** [Octobre 5, 2024, 8:28 UTC](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580/20 "2024-10-05T08:28:03Z")

</div>

Bonjour,

J’avais exactement le même problème que toi avec DuckDNS, et j’ai réussi à le régler… jusqu’à la prochaine fois (date de fin de validité de Let’s Encrypt).

Il faut aller dans la configuration du plugin DuckDNS, modifier en mode YAML.

> domains:
> 
> - MONNOM .duckdns.org  
> token: 000000-00000-000000-00000  
> aliases: []  
> lets\_encrypt:  
> accept\_terms: true  
> algo: secp384r1  
> certfile: fullchain.pem  
> keyfile: privkey.pem  
> seconds: 300

Ensuite, modifier ton «&nbsp;domains&nbsp;» MONNOM .duckdns.org → MONNOM **1**.duckdns.org  
Laisser l’alias []. Sauvegarder.

Puis retourner dans Info et arrêter le plugin. Puis le redémarrer avec la nouvelle configuration. Ca va créer un nouveau certificat Let’s Encrypt.

Ensuite, il faut retourner dans la config YAML, modifier de nouveau le domaine:  
MONNOM **1**.duckdns.org → MONNOM .duckdns.org  
Laisser l’alias []. Sauvegarder.

Puis retourner dans Info et arrêter le plugin. Puis le redémarrer avec la nouvelle configuration. Ca va créer un nouveau certificat Let’s Encrypt pour ton domaine DuckDNS, valable 3 mois.

Re-belotte dans 3 mois.  
Pénible mais simple.

[Page suivante](https://forum.hacf.fr/t/probleme-renouvellement-certificat-duckdns-lets-encrypt/48580.md?page=2)
