Let's Encrypt certificaat vernieuwt niet automatisch, maar opnieuw opbouwen activeert wel de vernieuwing

AI-generated summary

Canapin reports that Let’s Encrypt SSL certificates on their Discourse forum fail to auto-renew, showing timeout and malformed authorization errors in acme.sh.log, despite a standard setup with no CDN or reverse proxy. Rebuilding the app manually triggers successful renewal. pfaffman suggests the issue may relate to the ACME process not listening properly or HTTP-to-HTTPS redirection interfering, though notes the logs show HTTPS attempts. Canapin confirms the problem has persisted for months, requiring manual rebuilds (e.g., June 20 and recently). pfaffman recommends manually running the renewal inside the container for debugging. featheredtoast identifies the root cause: ACME struggles with HTTP-to-HTTPS redirects, as it defaults to using the original protocol (HTTP) during renewal. They note recent updates to the Let’s Encrypt template should resolve this going forward.

I looked at other similar topics, but couldn’t find the reason. I might have missed some info.

Automatic renewal of the SSL certificate has been failing for months on one of my forums. From acme.sh.log:

[Thu Sep 18 00:32:58 UTC 2025] error='"error":{"type":"urn:ietf:params:acme:error:connection","detail":"2a01:4f8:c17:6ebb::: Fetching https://forum.tevives.fr: Timeout during connect (likely firewall problem)","status": 400'
[Thu Sep 18 00:32:59 UTC 2025] response='{
  "type": "urn:ietf:params:acme:error:malformed",
  "detail": "Unable to update challenge :: authorization must be pending",
  "status": 400
}'

Rebuilding the app properly renews the certificate.

This is a standard install, no fancy stuff, no CDN, no reverse proxy, etc.

The firewall is set as:

Any idea why this issue happens, and how to fix it?

BEWERKING: TL;DR: Ik weet het niet.

Wanneer was uw laatste heropbouw? Oh, maar dit speelt al een tijdje.

Er was onlangs iets over de http-poort die werd omgeleid voor .well-known-paden, maar de uwe is https. Het is niet erg logisch dat het zou time-outen, tenzij het acme-proces dat zou moeten luisteren om de een of andere reden niet actief is.

I rebuilt yesterday since the certificate wasn’t renewed the day before. It also failed the June 20th and I had to rebuild as well.

Het andere wat je de volgende keer kunt doen, is proberen het handmatig uit te voeren in de container om te zien of je nog een ander idee kunt krijgen.

Ik heb onlangs gewerkt aan de vernieuwing van het le-certificaat. Het gaat om de http-naar-https-omleiding - acme kan niet goed omgaan met de opdracht om om te leiden en probeert standaard verbinding te maken via hetzelfde protocol (http) als waarmee het oorspronkelijk is ingesteld.

Recente updates van de let’s encrypt-sjabloon zouden deze vernieuwingen in de toekomst moeten oplossen.