A Let’s Encrypt certificate error can originate in the certificate, DNS, web-server configuration, browser cache, or the application itself. This guide gives you a repeatable way to identify the failing layer, verify the result with browser tools, OpenSSL, and curl, and maintain checkpoints so the same problem does not return after renewal, migration, or a configuration change.
Overview
When HTTPS stops working, start with the exact symptom rather than reinstalling the certificate immediately. A browser warning about an expired certificate is a different incident from a hostname mismatch, an incomplete chain, mixed content, or a connection reset. Each points to a different part of the deployment.
There are four useful layers to check:
- Reachability: Does the hostname resolve to the intended server, and can a client establish a TCP and TLS connection?
- Certificate identity and validity: Does the certificate cover the hostname, and is it currently valid?
- Chain and protocol configuration: Is the server presenting the appropriate intermediate certificates and supported TLS settings?
- Application content: Does the page load resources over HTTP, redirect incorrectly, or depend on a hostname with a separate certificate problem?
Keep a record of the hostname, affected URL, time observed, certificate expiration date, certificate serial number, server software, and recent changes. That small incident note makes recurring renewal and migration failures much easier to compare.
What to track
Match the visible symptom to a likely cause
| Symptom | Likely area | First checks |
|---|---|---|
| Certificate expired | Renewal automation, deployment, or server reload | Inspect the certificate dates, renewal logs, installed files, and web-server reload status. |
| Hostname mismatch | Wrong certificate, DNS target, or missing name | Compare the requested hostname with the certificate's Subject Alternative Names and verify each DNS path. |
| Browser trust warning | Untrusted chain, incorrect system time, or an unusual client environment | Test from another client and inspect the complete chain rather than only the leaf certificate. |
| Incomplete certificate chain | Server is presenting only the leaf certificate or the wrong bundle | Check the server's certificate-file setting and test with OpenSSL or an independent TLS checker. |
| Connection reset or handshake failure | Listener, firewall, proxy, protocol, or server configuration | Confirm port 443 is reachable, inspect TLS and web-server logs, and compare direct and proxied requests. |
| Page loads with insecure content | Mixed content in HTML, CSS, JavaScript, images, or API calls | Use the browser console and Network panel to identify requests still using http://. |
Use browser tools for the user-visible error
Open the failing URL in a current browser and record the exact error code. Select the certificate details from the address bar and verify the issuer, validity period, and names covered. In Developer Tools, check the Console for mixed-content messages and the Network panel for redirects, failed requests, and resources served from a different hostname.
Test the bare domain, the www hostname, and any important subdomains separately. A certificate can be correct for one name while another virtual host serves a different certificate. Private browsing or a second network can help distinguish a local cache or DNS issue from a server-side failure, but it should not replace server-side verification.
Verify from the command line
OpenSSL shows what a TLS client receives from a particular endpoint. Replace example.com with the affected hostname:
openssl s_client -connect example.com:443 -servername example.com -showcerts
The -servername option is important on servers hosting multiple domains because it sends Server Name Indication. Review the presented names, validity dates, issuer, and chain. To inspect the certificate dates and names more directly, save the relevant certificate and run:
openssl x509 -in certificate.pem -noout -dates -issuer -subject -ext subjectAltName
Use curl to observe redirects and the HTTP response after TLS succeeds:
curl -IvL https://example.com/
If curl reports a certificate verification failure, investigate identity, validity, and chain before using options that disable verification. An insecure curl test can help isolate a problem, but -k should not be treated as a fix or used in production monitoring.
Track the files and logs that matter
For a typical automated deployment, confirm that the renewed certificate was written to the expected location, that the web server reads the intended certificate and private key, and that the server was reloaded after renewal. A common Let’s Encrypt layout includes a leaf certificate, a chain file, a combined full chain, and a private key; the server generally needs the full chain for reliable client validation. File names and paths vary by ACME client and operating system, so verify them in the active virtual-host configuration rather than assuming a default.
Check the ACME client log for validation failures, renewal failures, permission errors, and deployment-hook failures. Then inspect the web-server error log. Common locations include a distribution-specific directory under /var/log/nginx/ or /var/log/apache2/, but package and hosting environments can place logs elsewhere. Containerized and managed systems may expose them through a service manager or centralized logging platform.
Cadence and checkpoints
A certificate incident is easier to prevent when checks are scheduled rather than performed only after a browser warning.
- After every certificate renewal: Confirm the new expiration date, certificate names, chain, HTTP response, and application page. Verify that the renewal hook actually reloaded the service.
- Monthly: Review renewal logs and monitoring results for every production hostname. Test both the canonical hostname and any redirecting aliases.
- Quarterly: Review DNS records, reverse-proxy routes, certificate-file paths, private-key permissions, TLS configuration, and ownership of renewal credentials. Remove retired hostnames from monitoring and deployment scripts.
- Before a migration: Lower DNS TTL only when appropriate for the move, issue or stage-test certificates for the destination, and verify the new server before changing traffic. Use a written website migration checklist to avoid overlooking aliases and mail-related DNS records.
- After DNS or proxy changes: Test from more than one resolver or network and compare the certificate served at each reachable address. Proxies such as Cloudflare can create separate browser-to-proxy and proxy-to-origin TLS paths; review the Cloudflare and Let’s Encrypt TLS guidance when both are involved.
For scheduled monitoring, alert before the certificate becomes invalid, but also alert on hostname changes, chain changes, failed handshakes, and unexpected HTTP status codes. Expiration monitoring alone will not detect every deployment error.
How to interpret changes
Use this decision path to keep troubleshooting focused:
- Does DNS point to the intended endpoint? If not, correct the authoritative DNS record or the proxy route. Check A, AAAA, and relevant CNAME records; an unexpected IPv6 address can send some clients to a different server.
- Does port 443 accept a connection? If not, inspect firewall rules, listeners, load balancers, and service status. A certificate cannot solve a network or process failure.
- Does the certificate cover the exact hostname? If not, install or issue a certificate containing that name, or correct the virtual-host and SNI configuration.
- Is the certificate valid and is the chain complete? Check the installed file, the file selected by the active server configuration, and the certificates actually presented over the network. A correct file on disk does not prove that clients receive it.
- Does HTTPS succeed but the page still warn? Inspect redirects and every subresource for HTTP URLs. Update application settings, absolute URLs, API endpoints, and third-party resources carefully.
Do not confuse an origin certificate problem with an edge certificate problem when a reverse proxy is present. Test the public hostname first, then test the origin through its intended internal route. Also avoid deleting working certificates or changing several layers at once; preserve the last known-good configuration so you can roll back and identify the actual cause.
If you are testing a new ACME workflow, use a staging environment before production to reduce the impact of repeated failed attempts. Once validation and deployment are reliable, switch the workflow to production and retain monitoring. The staging certificate workflow guide covers this separation.
When to revisit
Revisit this checklist monthly or quarterly, and immediately after a certificate renewal, hosting migration, DNS edit, web-server upgrade, proxy change, or browser monitoring alert. Browser error wording and server defaults can change, so record the actual error code and command output instead of relying on a remembered label.
For each review, work through this compact incident checklist:
- Record the hostname, URL, time, client, network, and exact browser error.
- Confirm A, AAAA, and CNAME resolution reaches the intended service.
- Inspect the public certificate with the browser and OpenSSL.
- Check names, dates, issuer, chain, and the certificate served by every relevant alias.
- Review ACME client, web-server, proxy, and application logs.
- Verify the active configuration uses the intended full chain and private key.
- Test redirects, mixed content, API calls, and representative pages with curl and browser tools.
- Document the fix, deployment time, and follow-up monitoring result.
Keep the record with your deployment documentation and update it when your ACME client, web server, hosting platform, or proxy architecture changes. For deeper lifecycle planning, see the Let’s Encrypt certificate lifecycle playbook and the guide to automating certificate renewal. A short recurring review is usually enough to catch a broken renewal hook, stale DNS route, or unexpected certificate change before it becomes a user-facing HTTPS error.