Real people, 24/7(800) 395-7779

Keeping AutoSSL and Free SSL Certificate Renewals Working Behind Cloudflare Print

  • cloudflare, page rule, acme challenge
  • 0

Please note: PeoplesHost is not Cloudflare and does not provide direct Cloudflare support. This article covers the settings that affect SSL renewal on our servers.

The free SSL certificates on our servers (AutoSSL with Let's Encrypt on cPanel hosting, Let's Encrypt in Plesk on Windows hosting) renew automatically every few weeks. To renew, Let's Encrypt fetches a small test file from http://yourdomain.com/.well-known/acme-challenge/. This works fine through Cloudflare, as long as Cloudflare lets that request reach our server.

If a Cloudflare security feature challenges or blocks that path, the renewal fails, the certificate on our server eventually expires, and visitors see Cloudflare error 526 (with SSL mode Full (strict)) or a certificate warning.

What Breaks Renewal:

  • Under Attack mode (I'm Under Attack) left on for the domain.
  • Bot Fight Mode (it cannot be skipped with a rule on the Free plan; turn it off if renewals fail).
  • WAF custom rules (for example, country blocks or challenges) that challenge or block all traffic, including /.well-known/.
  • Records for the domain pointing somewhere other than our server.

Older guides (including a previous version of this article) used a Page Rule for this. Cloudflare has deprecated Page Rules; use the rules below instead.

Step 1: Create a Skip Rule for the ACME Challenge Path

  1. Log in to Cloudflare:

  2. Create a custom rule:

    • Go to Security > WAF > Custom rules (in newer dashboards: Security > Security rules) and click Create rule (choose Custom rules if asked).
  3. Match the path:

    • Rule name: Allow SSL validation.
    • Field: URI Path, Operator: starts with, Value: /.well-known/acme-challenge/
  4. Choose the Skip action:

    • Under Choose action, select Skip and check every option offered (on the Free plan this includes All remaining custom rules). The Free plan allows up to 5 custom rules, and this one counts as one of them.
  5. Deploy and order it first:

    • Click Deploy. Make sure the rule is at the top of your custom rules list so it runs before any blocking rule.

Step 2 (If You Use Under Attack Mode): Add a Configuration Rule

  • Go to Rules > Configuration Rules (or Rules > Overview > Create rule > Configuration Rule).
  • Match URI Path starts with /.well-known/acme-challenge/.
  • Set I'm Under Attack to off and Browser Integrity Check to off for this path, then deploy.

Step 3: Check the SSL/TLS Mode

Step 4: Renew and Confirm

Still Failing?

  • As a quick test, pause Cloudflare (Overview > Advanced Actions > Pause Cloudflare on Site), run the renewal, then resume Cloudflare. If renewal works while paused, a Cloudflare rule is still blocking the path.
  • Open a ticket with your domain name and we will check the renewal log on our server.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back