# Problem with Cryptpad Letsencrypt certificate

**URL:** <https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196>\
**Category:** Support apps\
**Tags:** cryptpad, english\
**Created:** [May 3, 2026, 3:44pm UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196 "2026-05-03T15:44:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chmeyer](https://forum.yunohost.org/user_avatar/forum.yunohost.org/chmeyer/32/9504_2.png) [@chmeyer](https://forum.yunohost.org/u/chmeyer)\
**Post date:** [May 3, 2026, 3:44pm UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/1 "2026-05-03T15:44:34Z")

</div>

**What app is this about, and its version** : 2026.29.0~ynh1  
**What YunoHost version are you running** : YunoHost 12.1.39 (stable)  
**What type of hardware are you using** : VPS bought online

### Describe your issue

I’m using Cryptpad since a while.  
In the last weeks I see an certificate error in my logs:

It says:

```auto
ERROR - Wrote file to /var/www/.well-known/acme-challenge-public/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM, but couldn't download http://sandbox.cryptpad.maindomain.tld/.well-known/acme-challenge/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM

```

and this is the file:

```auto
sudo ls -al /var/www/.well-known/acme-challenge-public/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM
-rw-rw-rw- 1 root root 87 May 3 06:26 /var/www/.well-known/acme-challenge-public/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM

```

All other domains (= a lot) work as expected.  
So my guess is: it’s a cryptpad problem and not a generic YNH problem.

I also tried a solution found in the forum archive:

```auto
yunohost domain cert install yourdomain.tld --force

```

but it also failed.

Is there a way to handle this?

### Share relevant logs or error messages

[https://paste.yunohost.org/raw/omonuwuqiz](https://paste.yunohost.org/raw/omonuwuqiz)

---

<div class="post-metadata">

**Author:** ![artlog](https://forum.yunohost.org/user_avatar/forum.yunohost.org/artlog/32/12399_2.png) [@artlog](https://forum.yunohost.org/u/artlog)\
**Post date:** [May 4, 2026, 8:39am UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/2 "2026-05-04T08:39:00Z")

</div>

Hi @chmeyer

what gives

```auto
curl http://sandbox.cryptpad.maindomain.tld/.well-known/acme-challenge/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM

```

assuming you replace sandbox.cryptpad.maindomain.tld with your real sandbox cryptad domain.

i take note that there are two domains for cryptad, this is the sandbox one only that is failing. i don’t now much about cryptad installation…

It might happen that locally from yunohost you don’t have access to itself, this is only a verification done by yunohost letsencrypt client script.  
This check can be deactivated with --no-check and there is a checkbox in web admin to disable it too.

```auto
yunohost domain cert renew sandbox.cryptpad.maindomain.tld --no-checks

```

---

<div class="post-metadata">

**Author:** ![artlog](https://forum.yunohost.org/user_avatar/forum.yunohost.org/artlog/32/12399_2.png) [@artlog](https://forum.yunohost.org/u/artlog)\
**Post date:** [May 4, 2026, 8:42am UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/3 "2026-05-04T08:42:00Z")

</div>

There has been a change recently with timeouts and letsencrypt, so depending on your network latency it can be affected too, see related discussion [Letsencrypt certificates not renewing after upgrading yunohost from older version](https://forum.yunohost.org/t/letsencrypt-certificates-not-renewing-after-upgrading-yunohost-from-older-version/42116)

---

<div class="post-metadata">

**Author:** ![TestDesk](https://forum.yunohost.org/user_avatar/forum.yunohost.org/testdesk/32/4110_2.png) [@TestDesk](https://forum.yunohost.org/u/TestDesk)\
**Post date:** [May 10, 2026, 12:11pm UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/4 "2026-05-10T12:11:53Z")

</div>

### English

It took a while to fully track down this bug.

The problem itself is easy to explain — the YunoHost package never deploys the nginx configuration for the sandbox domain automatically. What made the fix complicated is that there are three situations that trigger the issue:

1. Directly after installation — the config is never created
2. After every reboot — the config is missing at system startup
3. After domain actions in YunoHost (adding, removing domains, certificate renewal) — YunoHost runs `regen-conf` and reloads nginx multiple times

Each of these situations needed its own fix. The complete step-by-step guide is documented here:

[EN](https://github.com/TestDesk/homelab-solutions/blob/main/yunohost/apps/cryptpad/yh-cryptpad-sandbox-nginx.md) • [DE](https://github.com/TestDesk/homelab-solutions/blob/main/yunohost/apps/cryptpad/yh-cryptpad-sandbox-nginx_de.md)

I hope this helps.

* * *

### Deutsch

Es hat eine Weile gedauert, den Fehler vollständig zu lokalisieren.

Das Problem selbst ist schnell erklärt – das YunoHost-Paket deployed die nginx-Konfiguration für die Sandbox-Domain nicht automatisch. Was die Lösung kompliziert hat: Es gibt drei Situationen die den Fehler auslösen:

1. Direkt nach der Installation – die Config wird nie erstellt
2. Nach jedem Reboot – die Config fehlt beim Systemstart
3. Nach Domain-Aktionen in YunoHost (Domain anlegen, löschen, Zertifikat erneuern) – YunoHost führt dabei `regen-conf` aus und lädt nginx mehrfach neu

Jede dieser Situationen brauchte eine eigene Lösung. Die vollständige Anleitung mit allen Schritten ist hier dokumentiert:

[EN](https://github.com/TestDesk/homelab-solutions/blob/main/yunohost/apps/cryptpad/yh-cryptpad-sandbox-nginx.md) • [DE](https://github.com/TestDesk/homelab-solutions/blob/main/yunohost/apps/cryptpad/yh-cryptpad-sandbox-nginx_de.md)

Ich hoffe das hilft weiter.

---

<div class="post-metadata">

**Author:** ![chmeyer](https://forum.yunohost.org/user_avatar/forum.yunohost.org/chmeyer/32/9504_2.png) [@chmeyer](https://forum.yunohost.org/u/chmeyer)\
**Post date:** [May 10, 2026, 5:57pm UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/5 "2026-05-10T17:57:00Z")

</div>

Thanks a lot, your solution allowed to renew the let’s-encrypt certificate!  
That’s really great.

There is one small improvement / suggestion for your ‘Step 9: Create a Timer’ for other users:  
Maybe you could give a hint (like that in step 3 and 7) that the user should adjust the pathname to their own settings / domainname.

And then there still is a second problem with my cryptpad instance (‘TypeError: Utils.Util.decodeUTF8 is not a function’) , maybe you also have a suggestion there?

> [@Cryptpad fails with JS "TypeError: Utils.Util.decodeUTF8 is not a function"](https://forum.yunohost.org/t/cryptpad-fails-with-js-typeerror-utils-util-decodeutf8-is-not-a-function/41558):
>
> What app is this about, and its version: Cryptpad v2025.9.0 and v2026.2.0 (2025.9.0~ynh1 and 2026.29.0~ynh1) What YunoHost version are you running: 12.1.39 (stable) What type of hardware are you using: VPS bought online Describe your issue Hello there, I’m having problems with Cryptpad. I’m logged in as Ynh-User and want to access my previous stored files. When I click on Drive (or Documents, Presentation or whatever), it starts loading, but then fails with the error message “TypeError: Uti…

Anyway. Thanks a lot for solving this certificate issue with Cryptpad!

---

<div class="post-metadata">

**Author:** ![TestDesk](https://forum.yunohost.org/user_avatar/forum.yunohost.org/testdesk/32/4110_2.png) [@TestDesk](https://forum.yunohost.org/u/TestDesk)\
**Post date:** [May 10, 2026, 6:40pm UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/6 "2026-05-10T18:40:44Z")

</div>

> [@chmeyer](#):
>
> There is one small improvement / suggestion for your ‘Step 9: Create a Timer’ for other users:  
> Maybe you could give a hint (like that in step 3 and 7) that the user should adjust the pathname to their own settings / domainname.

Thank you for the hint, I have updated the documentation.

---

<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:** [May 25, 2026, 6:41pm UTC](https://forum.yunohost.org/t/problem-with-cryptpad-letsencrypt-certificate/42196/7 "2026-05-25T18:41:24Z")

</div>

Closed on May 25, 2026, 6:41pm UTC

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