# Using Let's Encrypt with Cloudflare

**URL:** <https://forum.hestiacp.com/t/using-lets-encrypt-with-cloudflare/20698>\
**Category:** DNS\
**Created:** [December 3, 2025, 7:44pm UTC](https://forum.hestiacp.com/t/using-lets-encrypt-with-cloudflare/20698 "2025-12-03T19:44:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![linkp](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/linkp/32/2863_2.png) [@linkp](https://forum.hestiacp.com/u/linkp)\
**Post date:** [December 3, 2025, 9:48pm UTC](https://forum.hestiacp.com/t/using-lets-encrypt-with-cloudflare/20698/2 "2025-12-03T21:48:42Z")

</div>

Welcome to the HestiaCP forum.

> [@Wonder](#):
>
> I understand that I need to set the A and AAAA records to gray (not proxyed) for it to generate

That understanding is incorrect. I use Let’s Encrypt certificates on my origins with the Cloudflare proxy always enabled. Make sure that you dont have any settings in your Cloudflare config that could disrupt the HTTP-01 challenge, such as _Always use HTTPS_.

I like to use Config Rules to force requests to the `/.well-known/acme-challenge` path to use HTTP among a few other settings. You can see a somewhat complete selection here:

> [@Error: Let’s Encrypt finalize bad status 403 - mail domain](https://forum.hestiacp.com/t/error-let-s-encrypt-finalize-bad-status-403-mail-domain/16274/6):
>
> I moved away from Page Rules for ACME challenge configs in Cloudflare. I use the Configuration and Cache Rules now. I don’t make any specific WAF changes, only the following: Configuration Rules: Name: ACME Challenge Expression: (starts\_with(http.request.uri.path, "/.well-known/acme-challenge/")) Automatic HTTPS Rewrites: Off Browser Integrity Check: Off Opportunistic Encryption: Off Security Level Essentially Off SSL: Off Cache Rules: Name: ACME Challenge Expression: (starts\_with(htt…

See if that helps. You should be able to use the native HestiaCP options to obtain Let’s Encrypt certificates once your Cloudflare is set up correctly.

Another option is to use [Cloudflare Origin CA certificates](https://developers.cloudflare.com/ssl/origin-configuration/origin-ca/), but they are incompatible with direct access, due to only being trusted by the Cloudflare edge. This limits them to use with only proxied HTTPS traffic.

---

_[View the full topic](https://forum.hestiacp.com/t/using-lets-encrypt-with-cloudflare/20698)._
