Cloudflare Proxy and Let's Encrypt #62

Closed
opened 2026-04-05 20:25:23 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @officialJCReyes on 7/20/2025

CloudPanel version(s) affected

2.5.1

Description

When a domain is proxied in Cloudflare the Let's Encrypt Certificate does not automatically renew

DOMAIN.com: Domain could not be validated, error message: error type: urn:ietf:params:acme:error:unauthorized, error detail: During secondary validation: 2606:4700:3030::6815:4001: Invalid response from http://DOMAIN.com/.well-known/acme-challenge/JnAUZ7A514G_RbE0l26gI9NHWB2qSjO3we4RSf2nEo0: 403

How to reproduce

With SSL enabled in Cloudflare set to Full, Full (Strict) or strict, proxy the domain after you generate your first certificate. When it is time for renewal you cannot renew your certificate.

Possible Solution

It appears that when it makes the ACME request it does it over port 80 instead of port 443. If you are using SSL mode Full or higher it does interpret properly. When using Flexible SSL Mode, Cloudflare communicates via HTTP to Cloudpanel and it is able to renew the certificate.

Image

Additional Context

No response

*Originally created by @officialJCReyes on 7/20/2025* ### CloudPanel version(s) affected 2.5.1 ### Description When a domain is proxied in Cloudflare the Let's Encrypt Certificate does not automatically renew DOMAIN.com: Domain could not be validated, error message: error type: urn:ietf:params:acme:error:unauthorized, error detail: During secondary validation: 2606:4700:3030::6815:4001: Invalid response from **http**://DOMAIN.com/.well-known/acme-challenge/JnAUZ7A514G_RbE0l26gI9NHWB2qSjO3we4RSf2nEo0: 403 ### How to reproduce With SSL enabled in Cloudflare set to Full, Full (Strict) or strict, proxy the domain after you generate your first certificate. When it is time for renewal you cannot renew your certificate. ### Possible Solution It appears that when it makes the ACME request it does it over port 80 instead of port 443. If you are using SSL mode Full or higher it does interpret properly. When using Flexible SSL Mode, Cloudflare communicates via HTTP to Cloudpanel and it is able to renew the certificate. <img width="665" height="212" alt="Image" src="https://github.com/user-attachments/assets/ed04d66b-ce05-4bc2-b052-c92ddce1ccb8" /> ### Additional Context _No response_
Sign in to join this conversation.