Web

Let's Encrypt Certificate Not Renewing: Certbot and AutoSSL Fixes

Talha Aslan 18 min read

Short answer

Why is my Let's Encrypt certificate not renewing?

A Let's Encrypt certificate not renewing means the renewal job either never runs or runs and fails domain validation. The usual causes are a missing scheduled task, a challenge request that cannot reach port 80, a bad redirect, an old DNS record, a CAA restriction, and rate limits hit after repeated failures.

Keep reading for the full details and examples

We wrote this guide for people who run Certbot on their own server and for people who rely on cPanel AutoSSL. First you find the layer where renewal breaks; then you fix that layer. We give commands and setting names only as the official docs state them. Since panel menus change between versions, we avoid leaning on exact button labels.

At Talha Aslan and team, we most often meet this problem right after someone adds a new redirect or security rule. In other words, the certificate rarely breaks on its own. Usually a change around it breaks renewal.

So use this guide like a checklist. Each section covers one layer and tells you what you have verified at the end. Once a layer passes, move to the next; that way you do not change the same setting twice or create a new problem. On a live store, back up the current configuration before every change.

What should you check before the certificate expires?

If you still have a valid certificate, stay calm; you have time. First, see when the certificate really ends and which names it covers. Enter your domain in our SSL checker, which shows the end date and the covered names from outside.

Then answer three questions:

  • Who renews the certificate: Certbot on the server, cPanel AutoSSL, or a CDN in front of you?
  • When was the last renewal attempt, and what error did it return?
  • Since then, did redirects, DNS, the server, or security settings change?

These three answers point to the problem in most cases. If the certificate already expired and visitors see a date error in the browser, our companion guide on NET::ERR_CERT_DATE_INVALID covers the visitor side in detail.

Which layer fails with a Let's Encrypt certificate not renewing?

The renewal chain has several layers, and each fails with a different symptom. This diagnosis table maps the symptom you see to the most likely layer and a first check.

SymptomLayerLikely causeFirst check
Logs show no renewal attempt at allSchedulingNo scheduled task, or it is offTimers and cron list
Challenge returns 404 or a connection errorHTTP validationChallenge file unreachablePort 80 and the challenge path
Challenge lands on another pageRedirectsFaulty redirect ruleRedirect chain
Challenge reaches the wrong serverDNSOld A or AAAA recordDNS records
Error mentions CAADNS policyCAA does not allow Let's EncryptCAA record
Too many failed attemptsRate limitsRepeated failing attemptsFix the root error first
Renewed, but the site serves the old oneWeb serverServer not reloadedReload and deploy hook

Read the table from top to bottom. If the scheduling layer does not run, the lower layers do not matter yet; first make sure the job really runs.

Which Certbot commands should you run first?

According to the official Certbot documentation, two commands make a good start. The first is certbot certificates. It lists the certificates Certbot manages, with their domains, expiry dates, and file paths. So you learn which certificate has the problem and what it is called.

The second is certbot renew --dry-run. The docs say this option tests renewal without saving certificates and uses the Let's Encrypt staging environment unless you set another server. Therefore, you see the error without spending your real rate limits.

  1. Run certbot certificates and note the name and expiry date of the failing certificate.
  2. Run certbot renew --dry-run and read the error line in the output.
  3. If the error names a domain, go to the validation sections below for that domain.
  4. After each fix, run the same test again. Do not move to a real renewal until the error is gone.

Per the docs, certbot renew renews only certificates near expiry and reuses the plugin and options from the original issuance. In other words, renewal needs the same conditions as the first issuance.

Is the automatic renewal job actually running?

In many cases of a Let's Encrypt certificate not renewing, renewal never even ran. The Certbot docs say most installations come with a scheduled task that runs certbot renew. To check, the docs point to three places: the /etc/crontab file, the /etc/cron.*/* folders, and the output of systemctl list-timers.

If none of these holds a renewal task, the docs describe adding a cron entry by hand: a line that runs certbot renew -q twice a day with a random delay. The official Let's Encrypt FAQ also recommends renewing at random times instead of fixed ones, so you avoid busy moments on the service.

Also, after a server move we often find that the job stayed on the old machine. Copying the certificate files to the new server is not enough; the renewal task has to live there too.

Why does HTTP-01 validation fail?

According to the Let's Encrypt challenge types documentation, in HTTP-01 the ACME client places a file under the /.well-known/acme-challenge/ path on your domain, and Let's Encrypt tries to read it over the internet. The docs state clearly that this challenge works only on port 80.

So the most common failure causes are:

  • A firewall or the provider's network rule blocks port 80.
  • The web server does not serve hidden folders. The Certbot docs stress that it must.
  • A security plugin or rule blocks paths that start with a dot.
  • The webroot path is wrong, so Certbot cannot write the file where the site really serves from.
  • The app sends every unknown address to its own page and swallows the challenge file.

Quick test: put a small text file of your own into the challenge folder and open it in a browser over plain HTTP. If you cannot see the file, Let's Encrypt cannot either. If you can see it but validation still fails, check that requests from outside reach it too. For example, a provider firewall that allows only some countries lets you in but keeps validation servers out.

How do redirects break validation?

A redirect from HTTP to HTTPS is not a problem in itself. The challenge types documentation says HTTP-01 follows redirects up to 10 deep, and it accepts only redirects to http or https addresses on ports 80 or 443. When it lands on HTTPS, it also does not validate the certificate, so even an expired certificate does not block this step.

The trouble starts when a redirect sends the challenge file to the wrong place. For example, a rule that sends everything to the home page, a setup that redirects to another port, or a www rule that loops forever will fail validation. Check the current limit in the official docs, since it can change.

To see your redirect chain, enter a challenge path address in our redirect checker. If you see an unexpected hop, fix the rule so it leaves the challenge path alone. For a general check, see how to check an HTTP to HTTPS redirect.

How do DNS records and IPv6 affect validation?

Let's Encrypt sends the challenge request to the address your DNS record points to. If you moved the site to a new server but DNS still points to the old one, the challenge file sits on the new server while the request goes to the old one. The result is a failed validation.

IPv6 is a detail people often miss. If your domain has both an IPv4 (A) and an IPv6 (AAAA) record, the request may go to your IPv6 address. If the AAAA record points to an old server or an address nobody set up, validation fails. The challenge types page does not cover this in detail; however, in practice it is one of the DNS errors we see most. We explain how IPv6 works in what IPv6 is.

To check, use our DNS lookup tool and confirm that both A and AAAA records point to the right server. Fixing or removing a wrong AAAA record often solves the problem in one step.

When should you use DNS-01 validation?

The challenge types documentation says that in DNS-01 you add a TXT record at _acme-challenge under your domain. This is the way to get wildcard certificates, and it does not need port 80 open. However, per the docs, it cannot validate IP addresses.

DNS-01 fits well when your server sits on a network that the outside cannot reach, or when several servers serve the same domain. On the other hand, automated renewal needs an API from your DNS provider and a matching plugin. The docs warn that storing full DNS API credentials on the web server is risky and recommend narrowly scoped credentials.

We cover the wildcard setup itself in what a wildcard SSL certificate is. The key point here is that renewal uses the same DNS method. If you got the first certificate by adding the TXT record by hand, automated renewal will not run by itself.

Could a CAA record block Let's Encrypt?

Yes. According to the Let's Encrypt CAA documentation, CAA is a DNS record in which the domain owner states which certificate authorities may issue for the domain. If your domain has CAA records and none of them allows Let's Encrypt, it will not issue.

The docs say to use the issue tag with the value letsencrypt.org. That record also covers wildcards unless you add a separate issuewild record. Multiple CAA records add up, so if you already allow another authority, simply add a record for Let's Encrypt.

One more case people miss: per the docs, a failing CAA lookup, such as a DNS server that does not answer, can also block issuance. So an outage at your DNS provider can make renewal fail.

How do you know you hit the rate limits?

The Let's Encrypt rate limits documentation lists several limit types, such as new orders per account, new certificates per registered domain, and new certificates per exact set of identifiers. For renewal, the most important ones are the authorization failure limits per identifier.

The docs say renewals with the same set of identifiers are exempt from some limits, but not from the failure limits. So if you retry renewal with the same broken setting again and again, you cannot place new orders for that domain for a while. The docs also explain that very long runs of consecutive failures can pause the identifier, and that you lift the pause through a self-service portal.

Limit values can change, so we do not quote numbers; check the current values in the official docs. The practical rule is simple: fix the error in staging with --dry-run first, then run the real renewal. As the docs warn, do not use --force-renewal on a daily basis either.

Why is cPanel AutoSSL not renewing the certificate?

On cPanel, AutoSSL usually manages the certificate. According to cPanel's official AutoSSL documentation, the default provider is Let's Encrypt, and AutoSSL runs during nightly updates and after account creation. If someone selects "Disabled" as the provider, AutoSSL turns off.

AutoSSL's domain control validation (DCV) depends on the same basic conditions: the domain must point to the right server, and the challenge request must get an answer. The docs also note that a provider's maximum number of redirects affects whether a domain passes HTTP-based DCV. Therefore, the redirect, DNS, and CAA checks above apply to AutoSSL too.

The AutoSSL causes we see most:

  • The domain points to another server or a CDN, so validation goes there.
  • An .htaccess or app rule redirects the challenge path.
  • Subdomains such as mail or www have no DNS records and fall out of scope.
  • The provider updated its terms of service, and someone needs to accept them again.

How do you use AutoSSL logs and manual checks?

Per the cPanel docs, you manage AutoSSL in WHM under Manage AutoSSL. To start a check for everyone, there is a "Run AutoSSL for All Users" option; for a single user, you use the check button in the user management section. On the command line, /usr/local/cpanel/bin/autossl_check --all does the same job.

To find the cause, the docs point to the "Logs" tab, where you select a log and view it. The log files also live in /var/cpanel/logs/autossl in text and JSON formats, and the system rotates them after a set period; check the current retention in the docs.

  1. Find the failing domain and the DCV error line in the log.
  2. If the error points to a redirect, DNS, or CAA problem, run the matching check above.
  3. After the fix, restart the check for that user only.
  4. Once the log shows success, confirm the site from outside.

On shared hosting without WHM access, look at the SSL/TLS status area in cPanel to request a check. Otherwise, contact your hosting support with the error line.

What if Certbot renewed the certificate but the site still serves the old one?

Certbot renews the certificate files, but the running web server can keep the old certificate in memory. So the server needs a reload after renewal. According to the Certbot docs, the right tool is --deploy-hook, which runs only after a successful renewal.

The docs also describe --pre-hook and --post-hook, plus the pre, deploy, and post folders under /etc/letsencrypt/renewal-hooks/. Executables in those folders run in alphabetical order. For example, a short script in the deploy folder that reloads the web server is a common fix.

If a CDN or reverse proxy sits in front of you, also check where the certificate really lives. We explain that structure in setting up an Nginx reverse proxy, and the link problem between a CDN and the origin in Cloudflare error 522.

Where do you change renewal settings?

Certbot stores each certificate's renewal settings in a configuration file under /etc/letsencrypt/renewal/, named after the certificate. The docs discourage editing these files by hand and point to certbot reconfigure for changing renewal options instead.

This detail matters, because the method you used for the first certificate also runs at renewal. For example, if you got the first certificate with the standalone method, which needs port 80 free, and a web server now uses port 80, renewal fails on the port conflict. In that case, switching to webroot is the lasting fix.

With webroot, the docs say you point -w at the folder the site serves, and Certbot writes the challenge files under that folder. If the site folder changed, for instance after a move to a new app structure, update that path too.

Is there a renewal difference between free and paid certificates?

Encryption works the same way; both follow the same standards. The difference lies in lifetime and renewal method. The official Let's Encrypt FAQ states that it issues short-lived certificates, that lifetimes cannot be adjusted, and that renewal should be automated. Check the current lifetime there.

Paid certificates often last longer. That looks like an advantage, but it carries a risk: because renewal is rare, people forget the process and nobody remembers how to do it. With short-lived certificates, automation is mandatory, and when it is set up well it removes most human error.

So the real question is not "which is safer" but "which can I manage automatically and visibly." We explain certificate basics and types in what an SSL certificate is.

What should you watch with many domains and subdomains?

One certificate can cover several names, such as the root domain, the www version, and a few subdomains. During renewal, however, each name on the list goes through validation. If even one name fails, the whole certificate may fail to renew.

Therefore, if you removed an unused subdomain from DNS, remove it from the certificate's name list as well. Otherwise, a name that no longer exists stops renewal for your working sites too. Likewise, add any new subdomain to the certificate.

  • Compare the names in certbot certificates with your DNS records.
  • Remove names you no longer use.
  • With many subdomains, consider a wildcard certificate and DNS-01.

This way, one forgotten name does not lock the whole setup.

How do renewal failures mix with other SSL errors?

Not every certificate error a visitor sees is a renewal problem. If the certificate is valid but the browser cannot connect because of a protocol or cipher mismatch, the cause lies in the server's TLS settings. We cover that case in the ERR_SSL_VERSION_OR_CIPHER_MISMATCH fix.

The sign of a renewal problem is the date: the end date has passed or is close. So the first check is always the end date. If the date is still ahead, you are dealing with another configuration issue, not renewal.

Also, if the page shows a warning instead of a padlock after renewal, check whether some files still load over HTTP. That content issue is separate from the certificate, and a new renewal attempt will not fix it. We explain it in the mixed content error guide.

How did renewal get fixed in a realistic example scenario?

Example scenario: an online store's team gets complaints from customers who see a browser warning on the checkout page. Certbot runs on the server, and the scheduled task works. Yet for several weeks every renewal attempt failed, and nobody noticed the warning.

The team runs certbot renew --dry-run and sees that the challenge request gets a 404. When they review recent changes, they find a new security rule that blocks every path starting with a dot. The team fixes the rule so it leaves the challenge path alone.

This time the test passes. Next, the team runs the real renewal, adds a deploy hook that reloads the web server, and sets up an independent check that watches the end date. The real lesson in this example: the failing renewal stayed silent. With monitoring, the team would have seen it before any customer did.

What are the most common mistakes with a Let's Encrypt certificate not renewing?

Some habits make renewal problems harder to solve:

  • Retrying real renewals without testing, then hitting the failed validation limit.
  • Requesting a brand new certificate every time, which can count as a new order instead of a renewal.
  • Moving servers without installing the scheduled task and hooks on the new one.
  • Forgetting the AAAA record and checking only IPv4.
  • Writing a broad redirect or security rule that also covers the challenge path.
  • Not reloading the web server after renewal.
  • Sending warning emails to an inbox nobody reads.

Most of these come not from missing skills but from missing ownership. When it is written down who is responsible, the team usually catches the problem on the first try.

How do you notice a renewal failure before your customers do?

Automatic renewal alone is no guarantee, because it can break silently. So add a second pair of eyes: independent monitoring that checks the certificate end date from outside and warns you as it approaches.

The Certbot docs say post-renewal hooks can receive lists of renewed and failed domains as variables. With that, you can write a short script that reports failed renewals to your team chat or email. The docs also note that certbot renew exits with an error code only when a renewal attempt fails, so your monitoring can use that exit code too.

Watching the HTTPS status in Search Console gives an indirect alarm as well; we explain the report in the Search Console HTTPS report. In short, two independent checks always beat one automated job.

What does a solid setup on your own VPS look like?

Once you fix the problem, putting the setup on a solid base prevents repeats. On your own server, we suggest this order:

  1. Get the certificate with a method that does not stop the web server, such as webroot or a web server plugin.
  2. Confirm the renewal task and run the test command once.
  3. Add a deploy hook that reloads the web server.
  4. Make sure A and AAAA records point to the right server.
  5. If you use CAA, check that it allows Let's Encrypt.
  6. Set up independent end date monitoring and write down who gets the alert.

You can see a hands-on example of these steps in our Next.js VPS deployment and SSL guide. Finally, when you fix a renewal problem, write a short note on what you did: the failing layer, the rule you changed, and the command you used to verify. That note saves real time when the issue comes back months later.

Who should handle this work?

If you have server access and command line experience, the steps in this guide are usually enough. Still, certificate renewal interacts with every redirect, security rule, and server change on the site. When different people change the site at different times, a silent renewal failure is only a matter of time.

In the sites we build, we treat certificate renewal, redirects, and measurement as parts of one structure. Our web design services include first-year hosting and maintenance, and speed, a clean server setup, and SEO foundations come with delivery. If your current site keeps running into these problems, or nobody clearly owns them, you can settle in writing who handles them as part of a corporate website design project.

If you go on your own, at least set up the test command, a deploy hook, and independent monitoring. Those three catch most problems before your customers notice.

Frequently Asked Questions

Why does my Let's Encrypt certificate not renew automatically?
The most common reason is that the renewal job never runs or domain validation fails. A closed port 80, a rule that redirects the challenge path, an old DNS or AAAA record, and a CAA restriction are the main causes. First see the error with the test command, then fix the matching layer and test again.
What does certbot renew --dry-run do?
According to the Certbot docs, it tests renewal without saving any certificates and uses the Let's Encrypt staging environment unless you choose another server. So you see the error without spending your real rate limits. Run it after each fix, and move to the real renewal only when it passes.
Does an HTTPS redirect break validation?
Not by itself. The Let's Encrypt docs say HTTP-01 follows a limited number of redirects and accepts only http or https redirects to ports 80 or 443. The problem starts when a rule sends the challenge file to the wrong page or another port. Check the current limit in the official documentation.
Where can I see why cPanel AutoSSL failed?
According to the cPanel docs, open the Logs tab under Manage AutoSSL in WHM, select a log, and view it. The server also keeps the logs in its AutoSSL log folder. Without WHM access, use the SSL/TLS status area in cPanel, or send the error line to your hosting support team.
I made too many failed attempts. What happens now?
Let's Encrypt applies failed validation limits per identifier. If you exceed them, you cannot place new orders for that domain for a while, and very long failure streaks can pause the identifier. Check the current values in the official docs, and fix the error in staging before any real attempt.
The certificate renewed, but the browser shows the old one. Why?
The web server may not have reloaded after renewal, so it keeps the old certificate in memory. The Certbot docs describe a deploy hook that runs only after a successful renewal, which fits this job well. If a CDN or reverse proxy sits in front of you, make sure the certificate is current there too.
  • Let's Encrypt certificate not renewing
  • certbot renew failed
  • AutoSSL
  • SSL certificate
  • HTTP-01
  • CAA record
  • cPanel
Share:
Talha Aslan

Google Partner digital marketing expert. Hands-on with SEO, Google Ads, web design and e-commerce projects since 2012; every post here comes from that experience.

Next project

Get a quote for your project.

Your brief goes straight to Talha Aslan and team: strategy led by Talha, delivery by an experienced team. We reply the same day and send the scope, timeline and price as a written quote within 1 business day.