# Renouvellement certificats impossible depuis migration

**URL:** <https://forum.yunohost.org/t/renouvellement-certificats-impossible-depuis-migration/29637>\
**Category:** Support\
**Tags:** french\
**Created:** [May 12, 2024, 10:09am UTC](https://forum.yunohost.org/t/renouvellement-certificats-impossible-depuis-migration/29637 "2024-05-12T10:09:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattiou](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mattiou](https://forum.yunohost.org/u/mattiou)\
**Post date:** [May 12, 2024, 10:09am UTC](https://forum.yunohost.org/t/renouvellement-certificats-impossible-depuis-migration/29637/1 "2024-05-12T10:09:18Z")

</div>

### 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.

```plaintext
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

```

---

<div class="post-metadata">

**Author:** ![mattiou](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mattiou](https://forum.yunohost.org/u/mattiou)\
**Post date:** [May 18, 2024, 4:38pm UTC](https://forum.yunohost.org/t/renouvellement-certificats-impossible-depuis-migration/29637/2 "2024-05-18T16:38:18Z")

</div>

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+

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [June 17, 2024, 4:38pm UTC](https://forum.yunohost.org/t/renouvellement-certificats-impossible-depuis-migration/29637/3 "2024-06-17T16:38:52Z")

</div>

Closed on June 17, 2024, 4:38pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
