Renouvellement certificats impossible depuis migration

My YunoHost server

**Hardware:RaspberryPi4
**YunoHost version:11.2.10.3
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: : à la suite de la migration vers ynh v11

Description of my issue

Bonjour à tous,
J’ai migré vers ynh 11 il y a quelques semaines. Sans problème particuliers hormis un soucis d’accès ssh par clé résolu facilement.

En revanche, mes certificats letsencrypt sont arrivés à expiration et je n’arrive pas à les renouveler. Après lecture sur le forum, j’ai tenté de forcer avec “sudo yunohost domain cert renew mydomain.tld --force” sans succès.

Ci-dessous le log.

Merci pour votre aide.

args:
  force: false
  no_checks: false
ended_at: 2024-05-18 16:08:26.536460
error: 'Certificate installation for maindomain.tld failed !

  Exception: Could not sign the new certificate'
interface: cli
operation: letsencrypt_cert_install
parent: null
related_to:
- - domain
  - maindomain.tld
started_at: 2024-05-18 16:08:16.854223
success: false
yunohost_version: 11.2.10.3

============

2024-05-18 17:08:16,873: DEBUG - Making sure tmp folders exists...
2024-05-18 17:08:16,889: DEBUG - Fetching IP from https://ip.yunohost.org 
2024-05-18 17:08:17,227: DEBUG - IP fetched: xx.xx.xx.xx
2024-05-18 17:08:17,242: DEBUG - Fetching IP from https://ip6.yunohost.org 
2024-05-18 17:08:17,354: DEBUG - Could not get public IPv6 : Failed to connect to https://ip6.yunohost.org ... maybe the service is down, or you are not properly connected to the Internet in IPv4/IPv6.
2024-05-18 17:08:17,355: DEBUG - IP fetched: None
2024-05-18 17:08:17,358: DEBUG - Prepare key and certificate signing request (CSR) for maindomain.tld...
2024-05-18 17:08:21,417: DEBUG - Saving to /var/www/.well-known/acme-challenge-private/maindomain.tld.csr.
2024-05-18 17:08:21,418: DEBUG - Now using ACME Tiny to sign the certificate...
2024-05-18 17:08:21,418: INFO - Parsing account key...
2024-05-18 17:08:21,440: INFO - Parsing CSR...
2024-05-18 17:08:21,461: INFO - Found domains: maindomain.tld, xmpp-upload.maindomain.tld, muc.maindomain.tld
2024-05-18 17:08:21,462: INFO - Getting directory...
2024-05-18 17:08:22,141: INFO - Directory found!
2024-05-18 17:08:22,146: INFO - Registering account...
2024-05-18 17:08:23,553: INFO - Already registered!
2024-05-18 17:08:23,555: INFO - Creating new order...
2024-05-18 17:08:25,126: INFO - Order created!
2024-05-18 17:08:26,400: INFO - Verifying muc.maindomain.tld...
2024-05-18 17:08:26,530: ERROR - Wrote file to /var/www/.well-known/acme-challenge-public/DHr_wamsHVL1CgPkf2ITkNO-EVJrbYJj0FRwDh6KzMA, but couldn't download http://muc.maindomain.tld/.well-known/acme-challenge/DHr_wamsHVL1CgPkf2ITkNO-EVJrbYJj0FRwDh6KzMA: Error:
Url: http://muc.maindomain.tld/.well-known/acme-challenge/DHr_wamsHVL1CgPkf2ITkNO-EVJrbYJj0FRwDh6KzMA
Data: None
Response Code: None
Response: <urlopen error [Errno 111] Connection refused>
2024-05-18 17:08:26,534: ERROR - Certificate installation for maindomain.tld failed !
Exception: Could not sign the new certificate

Bonsoir tous,
Problème résolu ce jour en ajoutant muc.maindomain.tld au fichier /etc/hosts.
Mon serveur ynh est derrière une interface wireguard. Je pense que cela explique la nécessité de modifier /etc/hosts.
A+