Hosting and SSL · Article 0152
How to Fix an SSL Certificate That Has Expired
An expired SSL/TLS certificate can cause browsers to display security warnings or block visitors from accessing your website securely. Fixing the problem requires identifying which certificate has expired, renewing or replacing it, installing it at the correct server or CDN, and confirming that every intended hostname presents a valid certificate.
What does an expired SSL certificate mean?
An SSL certificate, more accurately called a TLS certificate, helps a browser verify a website's identity and establish an encrypted connection. A certificate contains a validity period with a start date and an expiration date.
After the expiration date, the certificate is no longer valid for normal browser certificate validation. Visitors may see warnings such as "Your connection is not private," "NET::ERR_CERT_DATE_INVALID," or another certificate-related security error.
The certificate may have expired because automatic renewal failed, domain validation could not be completed, the hosting provider did not install the renewed certificate, or the website is still serving an older certificate.
Importantly, renewing a certificate and installing it are separate parts of the process. A certificate can be successfully renewed at the certificate provider while the public website continues presenting the previous expired certificate.
Common causes of SSL certificate expiration
1. Automatic renewal failed
Many hosting providers and certificate services support automatic renewal. However, renewal can fail if domain validation stops working, an ACME client encounters an error, DNS records change, or the renewal process cannot access the required files or services.
2. Domain validation failed
Certificate authorities must verify control of the requested domain names before issuing a certificate. If the validation request cannot reach the expected HTTP challenge file or find the required DNS TXT record, issuance or renewal may fail.
3. The renewed certificate was not installed
A certificate provider may issue a replacement certificate without automatically installing it on the web server. If the server continues using the old certificate, visitors can still receive an expiration warning.
4. The wrong certificate is being served
A server hosting several websites may present a different certificate depending on the requested hostname and Server Name Indication (SNI). A valid certificate for one domain does not automatically cover every other domain on the same server.
5. A CDN or reverse proxy has a separate certificate
When a website uses a content delivery network or reverse proxy, HTTPS may terminate at that service before traffic reaches the origin server. The visitor-facing certificate and origin-server certificate are separate. One may be valid while the other has expired.
6. The certificate does not cover every hostname
A certificate may cover the root domain but not the www version, or it may cover a particular subdomain but not another. This is a hostname coverage problem rather than necessarily an expiration problem.
7. Renewal notifications were missed
An administrator may not receive an expiration warning because the notification address is outdated, messages are filtered, or the certificate is managed by a different provider. Without monitoring, an expired certificate may go unnoticed.
Step 1: Confirm which certificate has expired
Do not renew or replace a certificate until you identify the certificate currently being presented to visitors.
- Open the affected website using HTTPS.
- Click the browser's site information or security indicator near the address bar.
- Open the certificate details if the browser provides them.
- Check the certificate's validity period, including its expiration date.
- Check the subject name and Subject Alternative Names (SANs) to identify the hostnames covered.
- Record the certificate issuer and any browser error message.
Browser menus differ, so the exact location of certificate information depends on the browser and version.
Check each hostname separately if your website uses more than one, such as:
example.comwww.example.comshop.example.comapp.example.com
Do not assume that checking the homepage proves every subdomain has a valid certificate.
Step 2: Identify where HTTPS is terminated
Before renewing the certificate, determine which service presents it to the browser. This is particularly important when your website uses a CDN, load balancer, reverse proxy, or managed hosting platform.
If HTTPS is handled by your hosting provider
Open your hosting control panel and locate the SSL/TLS or security section. Identify the certificate assigned to the affected domain and check its status and expiration date.
If HTTPS is handled by a CDN
Check the CDN's dashboard for its visitor-facing or edge certificate. A certificate installed on the origin server does not automatically renew a separate edge certificate managed by the CDN.
If you use a reverse proxy or load balancer
Check the certificate configured on the service that accepts the public HTTPS connection. If several servers handle traffic, confirm that the renewed certificate is deployed consistently across the relevant endpoints.
Step 3: Renew the expired SSL certificate
The renewal procedure depends on the certificate issuer and hosting arrangement. Use the provider that manages the existing certificate whenever possible.
For hosting-provider SSL certificates
- Sign in to your hosting account.
- Open the SSL/TLS or website security section.
- Select the affected domain.
- Check whether the certificate is expired, pending renewal, or awaiting domain validation.
- Use the provider's renewal, reissue, or installation option as appropriate.
- Complete any required domain ownership or validation checks.
- Confirm that the provider reports successful issuance and installation.
Some hosting providers renew certificates automatically. If the control panel reports that renewal is already in progress, check its status and error details before starting a separate issuance process.
For Let's Encrypt certificates
Let's Encrypt certificates are commonly managed through an ACME client or a hosting-provider integration. If your hosting provider manages Let's Encrypt, use its supported renewal interface rather than installing a separate ACME client without understanding the existing configuration.
If you manage the server yourself:
- Identify the ACME client responsible for the certificate.
- Check its renewal status and logs.
- Identify whether HTTP-01 or DNS-01 validation is configured.
- Resolve the specific validation or account error.
- Run the renewal process using the instructions for your installed ACME client.
- Confirm that the new certificate was deployed to the service that handles HTTPS.
Do not assume that a successful certificate issuance automatically means the web server is serving the new certificate.
Official reference: Let's Encrypt challenge types.
Step 4: Resolve domain validation failures
If renewal fails because the certificate authority cannot validate your domain, identify the validation method before changing DNS or server settings.
HTTP-01 validation
With HTTP-01 validation, the ACME client places a temporary challenge file at a path under:
http://yourdomain.com/.well-known/acme-challenge/
The certificate authority attempts to retrieve the expected challenge response. Common reasons for failure include:
- The domain points to the wrong server.
- The challenge directory is inaccessible.
- A firewall or security rule blocks the validation request.
- A redirect or proxy configuration prevents the expected response.
- Multiple web servers do not all serve the required challenge file.
Check the ACME client's validation error and confirm that the challenge URL can be reached as required. Do not delete unrelated website files or disable all security protections to make validation work.
DNS-01 validation
With DNS-01 validation, the ACME client creates a TXT record under a name such as:
_acme-challenge.yourdomain.com
The certificate authority checks the DNS TXT record to verify domain control.
Check the following:
- The TXT record exists at the exact challenge hostname.
- The record value matches the value supplied by the ACME client.
- The record is published through the authoritative DNS provider.
- Old or conflicting challenge records are handled according to the ACME client's instructions.
- DNS changes have had sufficient time to become visible to the validating service.
Do not delete ordinary MX, A, AAAA, CNAME, or other website DNS records while troubleshooting a certificate challenge.
Official reference: Let's Encrypt HTTP-01 and DNS-01 validation.
Step 5: Install the renewed certificate correctly
After renewal, confirm that the replacement certificate is installed at the correct HTTPS endpoint.
For a hosting control panel
- Open the SSL/TLS section for the affected domain.
- Check whether the new certificate is marked as installed or active.
- If manual installation is required, follow the hosting provider's instructions for the certificate, private key, and intermediate certificate chain.
- Confirm that the certificate is assigned to the correct domain and HTTPS service.
- Save the configuration and allow the hosting service to apply the change.
For a self-managed server
Follow the documentation for your web server, such as Apache or Nginx. Confirm that the configuration references the new certificate and corresponding private key.
For deployments involving several web servers, verify that each server presents the intended certificate. A single server with an outdated certificate can cause intermittent browser warnings when traffic is distributed across multiple endpoints.
Never send your private key to an ordinary support contact or publish it in a public troubleshooting post.
Step 6: Check the certificate chain and hostname coverage
A certificate may be within its validity period but still fail browser validation if the chain is incomplete or the requested hostname is not covered.
Check the certificate chain
The server must present the appropriate certificate chain so that clients can establish trust in the issuing certificate authority. If the hosting provider supplies an intermediate certificate or certificate bundle, install it according to the provider's instructions.
Check hostname coverage
Compare the requested hostname with the certificate's Common Name and Subject Alternative Names. The certificate must cover the hostname being visited.
For example, a certificate covering example.com does not necessarily cover www.example.com. Both names need appropriate coverage if visitors can access both.
Check the correct certificate is served
If the server hosts several domains, check its SNI configuration. The server should present the certificate matching the hostname requested by the visitor.
Official reference: Cloudflare Full (strict) certificate requirements.
Step 7: Check CDN and origin-server certificates
If your website uses Cloudflare or another CDN, the visitor-facing certificate and the origin certificate may be managed separately.
For example, a browser may successfully connect to the CDN, but the CDN may fail to establish a trusted HTTPS connection to the origin server because the origin certificate is expired or invalid.
Check these two connections separately:
- Visitor to CDN: Confirm that the public-facing certificate is valid for the hostname.
- CDN to origin: Confirm that the origin server presents a certificate that meets the CDN's configured validation requirements.
For Cloudflare Full (strict) mode, the origin certificate must be unexpired, trusted under the applicable configuration, and match the requested hostname. Replacing an expired origin certificate may therefore be necessary even when the browser-facing certificate is valid.
Do not switch to a less secure SSL/TLS mode simply to hide an origin certificate error. Correct the origin certificate and connection configuration instead.
Official references:
Step 8: Restore and verify automatic renewal
Renewing the current certificate solves the immediate problem, but you should also identify why it expired. Otherwise, the same failure may happen again.
- Confirm whether automatic renewal is enabled.
- Check the scheduled renewal process or ACME client status.
- Review the most recent renewal logs for validation or installation errors.
- Confirm that the renewal process has permission to update the certificate files and reload the relevant service.
- Verify that DNS records and challenge paths remain compatible with the validation method.
- Check whether the certificate provider sends expiration or renewal failure notifications.
- Set up monitoring for every important hostname.
If your hosting provider manages certificate renewal, ask its support team to confirm that automatic renewal and installation are active for the affected domain.
How to verify that the expired certificate is fixed
Do not rely only on a hosting control panel showing that a certificate was renewed. Confirm what external visitors actually receive.
- Open the website using HTTPS in a private browser window.
- Inspect the certificate details and confirm that the current validity period has not expired.
- Check that the certificate covers the exact hostname being visited.
- Confirm that the certificate chain is trusted and complete.
- Test the root domain and the www hostname if both are intended to work.
- Test important subdomains separately.
- If a CDN or load balancer is used, verify the public endpoint and the origin connection independently.
- Check that HTTP-to-HTTPS redirects work without producing a redirect loop.
- Review the hosting or ACME logs for new renewal or installation errors.
If multiple servers handle requests, repeat the checks from different network paths or ask the hosting provider to verify all active endpoints.
Common mistakes to avoid
- Renewing the wrong certificate: Identify whether the expired certificate belongs to the origin server, CDN, or another HTTPS endpoint.
- Assuming issuance means installation: A renewed certificate must also be deployed where HTTPS connections terminate.
- Checking only the root domain: Test www and every important subdomain separately.
- Deleting DNS records unnecessarily: Change only the specific validation record or configuration supported by the evidence.
- Disabling certificate validation: This hides security problems rather than fixing them.
- Switching off HTTPS: Do not remove encryption as a workaround for an expired certificate.
- Ignoring the certificate chain: An incomplete intermediate chain can cause trust errors even after renewal.
- Forgetting automatic renewal: A manual renewal does not necessarily repair the process that caused the expiration.
- Sharing private keys: Keep certificate private keys and account credentials confidential.
If the problem continues
Contact your hosting provider, CDN provider, or certificate authority according to which service is responsible for the failed connection.
Provide the support team with:
- The exact affected hostname or hostnames.
- The browser's certificate error message.
- The certificate issuer and expiration date.
- The time when the problem was observed, including the time zone.
- Whether HTTPS terminates at the hosting server, CDN, or load balancer.
- The renewal or domain-validation error message, if available.
- The steps already completed and the results.
Do not include private keys, DNS API credentials, account passwords, or other secrets in the support request.
If the hosting provider reports that the certificate is installed but visitors still receive the old certificate, ask it to check the certificate served by every active endpoint and whether the HTTPS service has loaded the updated configuration.
Frequently asked questions
Can I renew an expired SSL certificate?
Yes. You can generally renew or reissue a certificate after it expires, subject to the certificate provider's current requirements. Complete any required domain validation and install the replacement certificate at the correct HTTPS endpoint.
Why does my website still show an expired certificate after renewal?
The renewed certificate may not have been installed, the web server may still be presenting an older certificate, or a CDN or another endpoint may have its own certificate. Check the certificate presented to external visitors rather than relying only on the provider's renewal status.
Does an expired SSL certificate affect every page?
The certificate applies to the hostname and HTTPS connection, not just one page. If the certificate for a hostname is expired, browsers may show security warnings for pages accessed through that hostname. Other hostnames may have separate certificates and different results.
Is an expired certificate the same as a hostname mismatch?
No. Expiration means the certificate's validity period has ended. A hostname mismatch means the certificate does not cover the domain being visited. Both can cause browser security warnings, but they require different corrections.
Can a CDN have a valid certificate while my origin certificate is expired?
Yes. A CDN can present a valid visitor-facing certificate while connecting separately to an origin server. If the origin certificate is expired and the CDN validates it, the origin connection may fail even though the browser-facing certificate is valid.
Should I disable HTTPS until the certificate is renewed?
No. Disabling HTTPS can expose visitors to unencrypted connections and does not solve the underlying certificate problem. Renew and correctly install the certificate instead.
How can I prevent SSL certificate expiration in the future?
Enable supported automatic renewal, monitor certificate validity, verify renewal logs, maintain working domain validation, and configure notifications for renewal failures. Check all important hostnames rather than monitoring only the homepage.
Related troubleshooting guides
- How to Fix a WordPress Website Stuck in Maintenance Mode
- How to Fix an SSL Certificate Name Mismatch
- How to Fix WordPress File Uploads Failing Because of Server Limits
- Browse all troubleshooting guides