Unlock Exclusive Discounts on SSL Certificates – Save Up to 80% for a Limited Time! View Deals

SSL Certificate Automation: How to Automate SSL Certificate Renewal and Prevent Expiry 

Quick Answer:

  • SSL certificate automation uses an ACME client, such as Certbot or acme.sh, to renew certificates on a schedule before they expire.
  • Renewal and deployment are separate steps. The server must reload to serve the new certificate.
  • Public certificates are limited to 200 days today and 47 days from March 2029, so manual renewal will not keep up.
  • Test with certbot renew –dry-run and monitor expiry independently, because CA expiry emails cannot be relied on.

What happens when your SSL certificate expires without warning? Visitors see a full-page security warning, secure connections fail, and customers start to lose trust in your business. If renewal depends on someone remembering a date for every domain and every server, one missed reminder is enough.

That risk is growing. Under CA/Browser Forum Ballot SC-081v3, the maximum lifetime of a publicly trusted certificate fell to 200 days on March 15, 2026, and it will drop to 47 days by March 2029. More renewals mean more chances to miss one.

If you want to automate SSL certificate renewal and stop expiry surprises, then this blog is just for you. It explains how automation works, which tools to use, how to set up Certbot with NGINX, and how to monitor the result.

SSL certificate automation is the process of requesting, validating, renewing and deploying SSL/TLS certificates with software instead of manual steps. An ACME client, the software on your server that talks to the Certificate Authority (CA), handles each step on a schedule using the ACME protocol (RFC 8555).

People still say “SSL”, but modern websites use Transport Layer Security (TLS) to encrypt traffic between browsers and servers. The certificate is the same either way.

Important: A renewed certificate is not finished until it is installed and served on the live site. Automation must cover deployment and verification, not only renewal.

When a certificate expires, browsers stop trusting the connection and show a full-page warning such as “Your connection is not private”. Most visitors leave at that point.

  • Websites: Visitors and search engine crawlers hit an error instead of your page.
  • APIs and apps: Clients reject the connection, so integrations and mobile apps fail.
  • Email and other services: Mail servers and internal tools that use the certificate can stop connecting.

The problem lasts until a valid certificate is installed, which is why prevention matters more than a fast fix.

The CA/Browser Forum, which sets the rules for publicly trusted certificates, approved a phased reduction in maximum validity (Ballot SC-081v3):

Certificate issued on or afterMaximum validity
March 15, 2026200 days
March 15, 2027100 days
March 15, 202947 days

Let’s Encrypt is moving faster. Its default lifetime drops from 90 to 64 days on February 10, 2027, and to 45 days in 2028 (Let’s Encrypt).

If you manage ten certificates, a 47-day lifetime means well over a hundred renewals a year. Doing that by hand is not realistic.

Important: Let’s Encrypt stopped sending expiry reminder emails on June 4, 2025 (Let’s Encrypt). Do not rely on your CA to warn you. Set up your own monitoring.

Why Is Automated SSL Certificate Renewal Important?

When you manage several domains and servers, the chance of forgetting to renew a certificate grows with every manual renewal. With automated SSL certificate renewal, you can:

  • Prevent unexpected expiry: Renew certificates well before their validity period ends.
  • Reduce manual work: Stop tracking dates and repeating the same steps for every site.
  • Keep connections secure: Deploy and serve renewed certificates the same way every time.
  • Manage many websites: Use one standard renewal process across domains and servers.
  • Catch failures early: Combine automation with monitoring to detect problems before visitors do.

Automation reduces human error, but a misconfigured setup can still fail silently. That is why testing and monitoring are part of every step below.

Manual renewalAutomated renewal
Renewal trackingCalendar, spreadsheet or reminder emailsACME client checks expiry on a schedule
ValidationDone by hand for every orderCompleted by the client (HTTP-01 or DNS-01)
DeploymentCopy files and restart the serverPlugin or deployment hook reloads the service
ScaleEffort grows with each certificateMany domains handled the same way
Typical failuresMissed reminders, wrong file installedBlocked port 80, DNS errors, failed hooks
Best forA few certificates, legacy devicesWeb servers, hosting, cloud and containers

*Manual vs. automated SSL certificate renewal.*

How Does SSL Certificate Automation Work?

An automated SSL renewal follows the same cycle every time:

  1. Certificate request: The ACME client requests a certificate from the CA.
  2. Domain validation: The CA confirms you control the domain through a challenge, such as HTTP-01 or DNS-01.
  3. Certificate issuance: The CA issues the certificate after validation succeeds.
  4. Automated renewal: On a schedule, the client checks expiry and requests a replacement when renewal is due.
  5. Certificate deployment: The renewed certificate is installed and the service is reloaded.
  6. Verification: The live server is checked to confirm it serves the new, valid certificate.
Six-step SSL certificate automation process from certificate request to verification.
How SSL certificate automation works: the ACME client requests, validates and renews, while deploy and verify are separate steps.

Renewal and deployment are two separate steps. A certificate can renew successfully while the server keeps serving the old one from memory until the service is reloaded. If the reload never happens, visitors see the old certificate until it expires.

Renewed SSL certificate not deployed while the web server still serves the expired certificate.
A renewed certificate only protects visitors once the server reloads and serves it.

Validation is the same check a CA performs for any DV certificate. To understand the manual version, read our guide on how to complete domain control validation.

The right tool depends on where your certificate is used. Certbot and acme.sh cover most Linux servers.

Certbot is an ACME client maintained by the EFF, with plugins for NGINX and Apache. It requests certificates, edits the web server configuration and sets up automatic renewal. It is the simplest choice for a standard web server with root access.

acme.sh is a lightweight shell-based ACME client that supports many CAs and DNS providers. It does not need root access for most modes, which suits shared hosting and cPanel. See our cPanel ACME SSL setup guide for a full walkthrough.

3. Other environments

EnvironmentCommon option
Windows and IISwin-acme or Posh-ACME
Kubernetescert-manager
Web server with built-in HTTPSCaddy, which renews certificates automatically
Cloud load balancers and CDNsThe provider’s managed certificates, or upload certificates through its API
Shared hosting and cPanelThe host’s AutoSSL or acme.sh with the cPanel deploy hook

Tip: Whatever tool you use, list every certificate first, with its domain, CA, expiry date and the server it runs on. You cannot automate what you have not counted.

The validation method decides how the CA checks that you control a domain (Let’s Encrypt challenge types).

HTTP-01 vs DNS-01 validation comparison for automated SSL certificate renewal.
HTTP-01 vs DNS-01: a file on your web server or a TXT record in your DNS zone. Only DNS-01 supports wildcard certificates.
FeatureHTTP-01DNS-01
How it worksPlaces a challenge file at /.well-known/acme-challenge/Adds a TXT record at _acme-challenge
RequirementPort 80 reachable from the internetAPI access to your DNS provider
Wildcard certificatesNot supportedSupported
Best forSingle, publicly reachable web serversWildcards, internal servers and multi-server setups

Ideal for DNS-01: Administrators who manage wildcard SSL certificates, servers that are not public, or many servers behind a load balancer.

Important: If you automate DNS updates, use an API token limited to the zones and record types the client needs, and protect it like a password.

Here is how to set up automated SSL renewal with Certbot on an NGINX server, using Let’s Encrypt. The commands follow the Certbot documentation.

Install Certbot with snap, as the Certbot instructions recommend for most Linux systems:

sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot

Request a certificate for both versions of your domain. The NGINX plugin completes HTTP-01 validation and updates your NGINX configuration:

sudo certbot --nginx -d example.com -d www.example.com

Replace the placeholders: Use your own domain names. Make sure both names point to this server and port 80 is open.

Certbot installs a systemd timer or cron job that runs renewal automatically. Confirm that it is active:

systemctl list-timers | grep certbot

Do not assume renewal is scheduled just because the certificate was issued. Certbot 4.0 and later renews when less than one-third of the certificate’s lifetime remains.

Run a dry run. It performs a full renewal against the staging environment without replacing your live certificate:

sudo certbot renew --dry-run

Fix any error before you rely on automatic renewal in production.

When you use the NGINX plugin, Certbot normally reloads NGINX after a successful renewal. A deployment hook matters most when the certificate is also used by another service, such as a mail server or HAProxy, when you use standalone or webroot mode, or when you run a custom setup.

Create an executable script in Certbot’s deploy hooks directory. This example tests the NGINX configuration before reloading:

sudo nano /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh
 
#!/bin/sh
set -eu
nginx -t
systemctl reload nginx
 
sudo chmod 755 /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh

Tip: Certbot runs every executable file in that directory after each successful renewal. The nginx -t test stops an invalid configuration from being reloaded.

Check what visitors actually receive, not only what Certbot reports:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -subject -issuer -dates

The notAfter value is the expiry date. If it has not changed after renewal, the server is still serving the old certificate. You can also check the issuer, expiry and chain with the HashSSL SSL Checker.

How Do You Monitor SSL Certificate Expiry?

Monitoring is your backup when automation fails without anyone noticing. Use at least one check that runs outside the server that renews the certificate:

  • Certificate or uptime monitors: External services that check your certificate and alert you before it expires.
  • Prometheus blackbox exporter: Probes your HTTPS endpoints and exposes probe_ssl_earliest_cert_expiry for alert rules.
  • Renewal logs: Send Certbot or acme.sh errors to someone who will act on them.
  • Manual checks: Run the OpenSSL command above or the SSL checker after any server, DNS or hosting change.

Tip: Set alerts at 14, 7 and 3 days before expiry. With healthy automation, none of them should ever fire.

What about load balancers and multiple servers?

When several servers share one certificate, validate and renew in one place, then copy the certificate to every server or upload it to the load balancer. DNS-01 works well here because it does not need each server to serve the challenge file. Remember that a CDN or load balancer may hold its own copy of the certificate, so check it separately.

Why Is My SSL Certificate Renewal Failing?

If an automated renewal does not complete, check these common issues first:

SymptomLikely causeFix
HTTP-01 challenge failsPort 80 blocked, or a redirect, firewall or WAF stops the CAOpen port 80 and allow /.well-known/acme-challenge/
DNS-01 challenge failsWrong TXT record, slow propagation or a DNS token without permissionCheck the record name and value, wait longer, fix the API token scope
“Too many requests” errorCA rate limit reachedTest with staging (–dry-run) and retry later (rate limits)
Permission deniedClient or hook cannot read the key or write the filesFix file ownership and permissions without exposing private keys
Old certificate still servedService never reloaded, or a CDN holds a copyAdd a deployment hook and update the CDN or load balancer
Renewal never ranTimer or cron job disabledRun systemctl list-timers and re-enable the job
CA refuses to issueCAA record does not allow the CAAdd the CA to your CAA record

Let’s Encrypt, for example, allows 50 certificates per registered domain every 7 days and 5 failed validations per domain per account per hour (rate limits).

Tip: A failed renewal does not remove your current certificate. Run the client in verbose mode, fix the cause, and run a dry run before the expiry date.

How Do You Keep Automated SSL Secure?

Automation touches private keys and DNS, so lock both down:

  • Protect private keys: Keep them readable only by root or the service account, and never send them to anyone.
  • Use CAA records: Limit which CAs may issue for your domain, for example example.com. CAA 0 issue “letsencrypt.org”.
  • Restrict DNS access: Use API tokens scoped to the zones and record types the client needs.
  • Revoke a compromised certificate: Run sudo certbot revoke –cert-name example.com –reason keycompromise, then issue a new certificate with a new key.
  • Keep a recovery plan: Keep the previous working certificate until the replacement is verified.
SSL certificate automation best practices checklist.
Renewed. Deployed. Verified. A five-point checklist for reliable SSL certificate automation.

Quick self-check: Can you confirm that your certificate renews automatically, the new certificate reaches the live server, and you receive an alert if either step fails? If not, review your renewal schedule, deployment process and monitoring.

Does automation work for OV and EV certificates?

Mostly for DV. ACME automates domain validation, which is all a DV certificate needs. OV and EV certificates also need the CA to verify your organization, so they can be automated only when the CA supports ACME for that product and the organization is validated first. HashSSL’s Sectigo ACME Certificate-as-a-Service provides the server URL and EAB credentials for standard ACME clients. To learn how the protocol works, read What Is the ACME Protocol?

SSL certificate automation is only complete when the certificate renews, deploys and gets verified on the live server, with monitoring as a backup. Set up an ACME client such as Certbot, test with a dry run, add a deployment hook where needed, and alert at 14, 7 and 3 days. With certificate lifetimes heading to 47 days, that setup is no longer optional.

Want to see where your certificates stand today? Run your domain through the HashSSL SSL Checker, or contact our team to find an ACME-ready certificate for your setup.

1. What is SSL certificate automation?

SSL certificate automation uses tools and scheduled processes to request, validate, renew, and deploy SSL/TLS certificates with minimal manual intervention.

2. How does automated SSL certificate renewal work?

An ACME client checks when renewal is required, validates the domain, requests a new certificate, and renews the certificate via the process configured. Additional configuration for deployment and verification may be required. 

3. Which tools can automate SSL certificate renewal?

The most popular ACME clients include Certbot and acme.sh. The right option is based on your server, certificate authority, validation process, and deployment needs. 

4. How can I test automated SSL renewal?

If you are using Certbot, try to perform a “dry run” with sudo certbot renew –dry-run. Also ensure that the deployment is successful and that the live server is serving the desired certificate. 

5. Does certificate renewal automatically install the new certificate?

Not always. The certificate can be renewed successfully without being deployed to the web server or application. Set up and test the deployments separately.

6. Can I automate wildcard SSL certificate renewal?

Yes. DNS-01 validation supports wildcard certificates. The necessary DNS records must be accessible either directly or via an integration that is supported. 

7. Do I still need to monitor SSL certificate expiry after automation?

Yes. Independent expiry monitoring and alerts can also help to identify failed renewals, deployment issues, and more before a certificate’s expiration date.