On this page
What this issue is
Let's Encrypt certificates last 90 days, so they must renew automatically. Most setups use the HTTP-01 challenge. The certificate authority requests a small file at http://yourdomain/.well-known/acme-challenge/<token> on port 80 and checks the content. If that request fails, the certificate is not renewed.
| Blocker | What happens |
|---|---|
| Forced HTTP to HTTPS redirect to a page or app route | The challenge URL ends up at a 404, a login page or an app route instead of the token file |
| Firewall or security plugin | Port 80 is closed, or requests from the validation servers are blocked |
| CDN or proxy rule | The CDN answers port 80 itself, caches a 404, or forces its own redirect |
| Web server config change | A new virtual host or catch-all rule sends the challenge to the wrong folder |
| IPv6 record without a working listener | Validation tries IPv6 and finds nothing answering |
Why it costs you leads or sales
When the certificate expires, browsers block the page with a warning. Visitors from ads, email and search leave, forms cannot be reached, and checkouts stop. Tracking and form posts may also fail. The break is silent until the expiry date, so it often lands on a weekend or in the middle of a campaign.
Day 0
A new redirect rule or firewall change is deployed. Nothing looks wrong.
Day 60
Certbot tries to renew and fails. The error sits in a log nobody reads.
Day 75
Another retry fails. The site still loads normally.
Day 90
The certificate expires. Visitors see a security warning and leave.
Day 90 + hours
You find the cause and fix the challenge path. A new certificate is issued.
- Renewal startsCertbot or your host asks for a new certificate
- Challenge request on port 80Redirected, blocked or cached by a CDN
- Certificate renewedNever happens
- Visitors reach your siteBrowser warning after expiry
- Leads and salesForms and checkout unreachable
The validation request never reaches the token file, so the certificate expires and later visits fail.
How to check if your site has it
Run a dry runCustom code
On the server, run
sudo certbot renew --dry-run. It tests renewal against the Let's Encrypt staging service without changing your live certificate. Read the error: it names the URL and the status it got.Test the challenge path from outside
Create a test file and request it over plain HTTP with
curl -I http://yourdomain.com/.well-known/acme-challenge/test. You want a 200 or the file content, not a 301 to a page that does not serve it, a 403 or a 404.Follow the redirects
Run
curl -IL http://yourdomain.com/.well-known/acme-challenge/test. A redirect to HTTPS on the same host is allowed by Let's Encrypt. A redirect to another domain, a login page or a loop is not.Check port 80 is open
Confirm port 80 is allowed in the server firewall, cloud security group and any hosting panel. Test from a different network than the server.
Check the certificate expiry date
Run
echo | openssl s_client -servername yourdomain.com -connect yourdomain.com:443 2>/dev/null | openssl x509 -noout -datesand look at notAfter. If it is under 30 days and certbot has not renewed, renewal is failing.Read the logsCustom code
Check
/var/log/letsencrypt/letsencrypt.logfor the failed authorization and the response the validation server saw.
# Does the challenge path answer on port 80?
curl -IL http://yourdomain.com/.well-known/acme-challenge/test
# Test renewal without touching the live certificate
sudo certbot renew --dry-run
# When does the live certificate expire?
echo | openssl s_client -servername yourdomain.com -connect yourdomain.com:443 2>/dev/null | openssl x509 -noout -datesHow to fix it
The goal is that a request for /.well-known/acme-challenge/ on port 80 reaches the folder certbot writes to, with no login, block or rewrite in the way. If you cannot open port 80 at all, use DNS validation instead.
Exempt the challenge path from redirects (nginx)
Add a location block for
/.well-known/acme-challenge/before the catch-all redirect on the port 80 server block, serving from your webroot. Then reload nginx.Exempt it in Apache
Add a RewriteCond that skips
^/.well-known/acme-challenge/before your HTTPS redirect rule, then reload Apache.Open port 80
Allow inbound TCP 80 in ufw, firewalld, iptables and your cloud security group. Keep port 443 open too.
Match certbot to your setup
Check
/etc/letsencrypt/renewal/yourdomain.com.confuses the right authenticator and webroot path. If you cannot use port 80, switch to a DNS plugin for your DNS provider.
Check the host's SSL tool first
Most managed WordPress hosts renew Let's Encrypt from their own panel. Look in the SSL section for an error, then use the reissue or force renew option there.
Review security and redirect plugins
Temporarily check firewall plugins and redirect plugins for rules that catch
/.well-known/. Add an exception for that path rather than turning protection off.Check .htaccess
If a force-HTTPS rule or a block rule runs before the challenge path, add an exception for
.well-known/acme-challengeabove it.
Check DNS records
Webflow issues and renews certificates for you. Confirm your domain's A records and CNAME point to the values shown in Project settings > Hosting.
Remove conflicting records
Delete leftover A, AAAA or CAA records that point elsewhere or do not allow Let's Encrypt. Then re-publish. If it still fails, contact Webflow support.
Check domain DNS
Squarespace manages the certificate. In Domains, check the DNS settings point to Squarespace and no old records remain.
Check CAA records
If you added CAA records at your DNS host, make sure they permit letsencrypt.org, or remove them.
Check domain connection
Wix manages the certificate. In Domains, confirm the domain is connected correctly and DNS records match what Wix shows.
Remove conflicting records
Delete old A or AAAA records and restrictive CAA records at your DNS host, then wait for the certificate to be reissued.
Check domain DNS
Shopify issues the certificate itself. In Settings > Domains, check the domain shows as connected and the A record and www CNAME match Shopify's values.
Remove conflicting records
Delete extra A, AAAA or CAA records that block issuance. Certificate status usually updates after DNS is correct.
Check the custom domain
In the domain settings for your funnel or site, confirm the DNS records match what GoHighLevel shows.
Remove proxy or conflicting records
If a CDN proxy sits in front of the domain, set the record to DNS only until the certificate is issued. Remove stray AAAA or CAA records.
Not a Tag Manager issue
Certificates are issued for your site or server, not in GTM. If you use a server-side GTM custom domain, check its DNS records as shown in your hosting setup for that container.
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
location /.well-known/acme-challenge/ {
root /var/www/letsencrypt;
try_files $uri =404;
}
location / {
return 301 https://$host$request_uri;
}
}RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]How to confirm it's fixed
certbot renew --dry-runfinishes with no errorscurl -IL http://yourdomain.com/.well-known/acme-challenge/testreturns 200 for a test file, with no redirect to another host or a login page- Both the apex and www names pass, if both are on the certificate
- The notAfter date moves forward after a real renewal
- A scheduled renewal exists (
systemctl list-timersor cron) and is active - The site loads over HTTPS in a private browser window with no warning
Broken
- Port 80 redirects the challenge path to a page that does not serve it
- Dry run fails with a 404, 403 or timeout
- Certificate counts down to expiry
Fixed
- Challenge path is served on port 80 or DNS validation is used
- Dry run passes
- Certificate renews on schedule
How to prevent it happening again
- Run
certbot renew --dry-runafter any change to redirects, firewall, CDN or server config - Keep the challenge path exception in your config, with a comment explaining why
- Consider DNS validation if port 80 must stay closed
- Send certbot failure emails to a monitored address
- Set an expiry alert well before the 30-day renewal window ends
- Note the renewal method in your runbook so a new team member does not remove it
Example: how much time you have to fix the problem depends on when you find it. Numbers are illustrative.
How FunnelGuard handles this
FunnelGuard detects this only partly. It checks the certificate your site presents and warns you when the expiry date is approaching. That warning covers a failed renewal in practice, because a renewal that keeps failing ends with a certificate running out of time.
What it does not do is test the renewal process itself. It does not run certbot, request the /.well-known/acme-challenge/ path to see if it is blocked, or tell you which redirect or firewall rule is at fault. So you learn about the problem when expiry gets close, not on the day the rule is changed.
The challenge request is blocked, the certificate expires and the page shows a security error.
Questions people ask
Why is my Let's Encrypt certificate not renewing?
The most common reason is that the validation request to /.well-known/acme-challenge/ on port 80 fails. A forced redirect, a closed port, a firewall rule or a CDN rule can stop it. Run certbot renew --dry-run to see the exact error.
Can a redirect from HTTP to HTTPS break Let's Encrypt renewal?
A simple redirect to HTTPS on the same host is fine. Renewal breaks when the redirect sends the challenge to another domain, a login page, an app route that returns 404, or a loop. Add an exception for the /.well-known/acme-challenge/ path before the redirect rule.
Does Let's Encrypt need port 80 open?
For the HTTP-01 challenge, yes. Validation requests arrive on port 80. If you cannot keep it open, use the DNS-01 challenge with a DNS plugin for your provider instead.
How do I test Let's Encrypt renewal without breaking my site?
Run sudo certbot renew --dry-run. It uses the Let's Encrypt staging service, so your live certificate is not changed. A clean result means the next real renewal should work with the same setup.
Can I allow-list Let's Encrypt IP addresses in my firewall?
It is not reliable. Let's Encrypt validates from several network locations and does not publish a fixed list of IPs. Allow the challenge path on port 80 instead, or switch to DNS validation.
Why does certbot work manually but fail on schedule?
The scheduled job may run as a different user, use an old webroot path, or run after a config change that added a redirect or block. Check the renewal file in /etc/letsencrypt/renewal/ and the timer or cron job, then run a dry run.
Will FunnelGuard tell me my Let's Encrypt renewal is broken?
Only partly. FunnelGuard warns when your certificate is close to expiry, which catches a renewal that keeps failing. It does not test the renewal process or the challenge path, so run a dry run yourself after changes.
Related issues
- OPS-053SSL certificate expiredFix guide
- OPS-054Certificate expiring within days (renewal failing)Fix guide
- OPS-064HTTP not redirected to HTTPSFix guide
- OPS-065Redirect loop between http and https (CDN flexible SSL)Fix guide
- OPS-055Certificate for wrong hostname (name mismatch)Fix guide
- OPS-056Certificate missing www or apex in SANFix guide