Skip to content
FunnelGuard

Fix guide by FunnelsGuard

SSL certificate expiring soon: how to find and fix failed renewals

OPS-054High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

An SSL/TLS certificate proves your site is who it says it is and enables HTTPS. Every certificate has an end date. Certificates from Let's Encrypt last 90 days, and most are meant to renew automatically about 30 days before the end.

This issue is the warning stage. The certificate is still valid, but it has days left and the renewal has not happened. That means something in the renewal chain is broken. If nobody acts, the certificate expires (see OPS-053) and browsers block your site.

Why it costs you leads or sales

Once the certificate expires, Chrome, Safari, Firefox and Edge show a full-page security warning instead of your site. Most visitors leave. Ad clicks land on the warning, so you pay for traffic that never sees your page. Forms, checkouts and booking widgets stop working, and API calls or webhooks that need valid HTTPS can fail too.

What happens when renewal keeps failing
  1. Certificate issuedValid, HTTPS works
  2. Auto-renewal runsFails silently (port 80, DNS, cron)
  3. Certificate expiresBrowser shows a security warning
  4. Visitor leavesAd click wasted
  5. Lead or saleNever happens

The break is in the renewal step. Everything after the expiry date is lost.

Daily leads before and after expiryExample numbers
Daily leads before and after expiry (example)Day 7 before expiry: 40 leads per day; Day 1 before expiry: 40 leads per day; Day after expiry: 3 leads per day0153140403Day 7 before expiryDay 1 before expiryDay after expiryleads per day

Example: a site that normally gets 40 leads a day drops to almost none once the certificate expires. Numbers are illustrative.

How to check if your site has it

Check the end date of the certificate that your server actually sends. Do not trust the dashboard of your host alone, because the renewed file may exist but not be loaded.

Check the expiry date
  1. Look in the browser

    Open your site, click the padlock or site information icon, and open the certificate details. Read the 'Valid to' or 'Expires on' date.

  2. Check from the command line

    Run the openssl command below. It prints the start and end dates of the certificate your server sends.

  3. Check both www and the bare domain

    Run the check for example.com and www.example.com, plus any checkout or app subdomain. They can use different certificates.

  4. Check the renewal log

    On a server with Certbot, run the dry run command below and read the error it prints.

Show certificate dates and test renewalbash
# Dates of the certificate your server sends
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates

# Days left (Linux)
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -enddate

# Test Certbot renewal without changing anything
sudo certbot renew --dry-run

# List certificates Certbot manages
sudo certbot certificates

How to fix it

First find the cause, then renew. Renewing by hand without fixing the cause only buys you another 30 to 90 days.

Common reasons renewal fails and what to do
CauseTypical signFix
Port 80 blocked or redirected badlyCertbot HTTP-01 challenge failsOpen port 80 in the firewall and let /.well-known/acme-challenge/ load without login or geo blocks
DNS changedDomain points to a different server than the one renewingPoint DNS back, or renew on the server that now serves the domain
Cron job or timer stoppedNo renewal attempts in the logCheck systemctl list-timers for certbot.timer or restore the cron entry
Web server not reloadedNew file on disk, old certificate servedReload nginx or Apache after renewal, or add a deploy hook
Paid certificate not reissuedProvider email about expiry or failed paymentPay or reissue, then install the new files and the full chain
DNS challenge credentials expiredWildcard renewal fails with an API errorCreate a new DNS API token and update the Certbot config
Fix the renewal on your platform
  1. Find who issues the certificate

    On managed WordPress hosting, open the host's control panel and look for SSL or Security. Most hosts renew for you and have a 'Renew' or 'Reissue' button.

  2. Renew and force a reload

    Click renew, wait a few minutes, then re-check the date. If it fails, contact the host and send them the error shown.

  3. Check for plugin or redirect conflicts

    A security or redirect plugin that blocks /.well-known/ paths can stop validation. Allow that path, or turn the rule off while you renew.

Certbot renewal with an automatic reloadbash
# Renew and reload nginx only when a certificate was actually renewed
sudo certbot renew --deploy-hook "systemctl reload nginx"

# Check the systemd timer is active
systemctl list-timers | grep certbot

How to confirm it's fixed

Confirm the renewal worked
  • The openssl command shows a new end date at least 60 days away (about 80 or more for Let's Encrypt)
  • Both the www and bare domain show the new date
  • Any checkout, booking or app subdomain shows the new date too
  • certbot renew --dry-run finishes with no errors
  • The padlock shows no warning in a private window
  • A test form submission and a test checkout step load over HTTPS

How to prevent it happening again

Renewal fails quietly because nobody is watching it. Put a check on the end date and set the alert early enough to act, for example 21 days before expiry for 90-day certificates.

Prevention checklist
  • Keep a list of every domain and subdomain with its certificate owner
  • Use a shared mailbox, not one person's, for the expiry notices from your certificate provider
  • Do not block /.well-known/acme-challenge/ with firewalls, login walls, geo rules or redirects
  • After any DNS, hosting or CDN change, re-check the certificate within a day
  • Add a deploy hook so the web server reloads after each renewal
  • Keep payment details current on paid certificates and domain registrars
  • Monitor days to expiry for every public hostname, including checkout subdomains
How a failed renewal unfolds
  1. Day 0 (Example)

    Certificate issued with 90 days of validity.

  2. Day 60

    Auto-renewal starts to run and fails after a firewall change. Nobody is told.

  3. Day 76

    14 days left. Still no alert, site works normally.

  4. Day 83

    An alert on days to expiry reaches you. You fix port 80 and renew.

  5. Day 90

    Without the alert, this is the day browsers would block the site.

How FunnelGuard handles this

FunnelGuard detects this issue today. Its ssl_valid check reads the certificate your site presents and records the days left until it expires. When that number gets low, you hear about it while the site still works, which leaves time to fix the renewal.

The check runs on a schedule as part of monitoring your real journeys. If a failure shows up, it is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. FunnelGuard tells you the certificate is close to expiry. It does not renew the certificate for you.

Questions people ask

Why is my SSL certificate not renewing automatically?

The most common causes are a blocked port 80, DNS that no longer points to the server doing the renewal, a stopped cron job or systemd timer, and expired API credentials for DNS validation. Run sudo certbot renew --dry-run and read the error. It usually names the exact cause.

How do I check when my SSL certificate expires?

Click the padlock in your browser and open the certificate details to see the 'Valid to' date. Or run echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates. Check both the www and bare domain, plus any subdomains.

What happens if my SSL certificate expires?

Browsers show a full-page security warning and most visitors leave. Forms, checkouts and integrations that need valid HTTPS can stop working. Ad clicks then land on the warning, so you pay for visits that cannot convert.

How many days before expiry should I renew my certificate?

Let's Encrypt certificates last 90 days and Certbot normally renews at about 30 days left. If you are under 14 days and still have not renewed, treat it as urgent. Set your own alert at around 21 days so you have time to fix the cause.

Why does Let's Encrypt renewal fail after I changed my server or firewall?

The HTTP-01 challenge needs the validation server to reach /.well-known/acme-challenge/ on port 80 of the domain. A new firewall rule, a forced redirect, a login wall or a DNS move can block it. Open port 80 for that path and run a dry run to confirm.

Do I need to restart my web server after renewing a certificate?

Usually you need at least a reload, because nginx and Apache keep the old certificate in memory. Use a Certbot deploy hook such as --deploy-hook "systemctl reload nginx" so it happens after every renewal.

Can I monitor SSL certificate expiry without logging in to my server?

Yes. Expiry is visible to anyone who connects to your site over HTTPS, so an external check can read the days left. FunnelGuard's ssl_valid check does this on a schedule and alerts you when the number gets low.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: ssl_valid days to expiry.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.