When a website shows an SSL or HTTPS error, the cause is usually identifiable: the certificate may be expired, issued for the wrong hostname, installed incompletely, or conflicting with DNS, redirects, mixed content, or a content delivery network. This guide provides a repeatable SSL certificate troubleshooting process, verification commands, monitoring checkpoints, and practical guidance for knowing when your HTTPS setup needs attention.
Overview
HTTPS depends on several connected layers working together. Your domain must resolve to the intended server, that server must present a valid certificate for the requested hostname, and the web application must load its resources securely. If any layer is misconfigured, visitors may see warnings such as certificate expired, connection not private, name mismatch, too many redirects, or mixed content.
Start troubleshooting from the outside in. First, confirm which hostname fails: the root domain, the www version, a subdomain, or an alternate domain used by a CDN. Next, inspect the certificate actually delivered to visitors. Then check DNS, hosting-panel settings, redirects, application URLs, and external assets.
Keep a short record of your SSL configuration, including the certificate provider, covered hostnames, renewal method, hosting account, DNS provider, CDN, and the date you last tested it. This makes future domain changes, migrations, and renewals easier to diagnose. For related DNS terminology, see DNS Records Explained: A Practical Guide to A, CNAME, MX, and NS Settings.
What to track
Certificate validity and hostname coverage
Check the certificate’s expiration date and confirm that it covers every hostname visitors use. A certificate for example.com may not automatically cover www.example.com, a store subdomain, or a separate domain. The browser’s certificate viewer normally shows the subject, covered names, issuer, validity period, and certificate chain.
An expired certificate requires renewal or replacement through the hosting panel, certificate provider, or CDN. If renewal appears successful but visitors still see an expired certificate, the website may be serving an older certificate from a different server, load balancer, proxy, or CDN edge.
DNS and server destination
Review the A and AAAA records for the affected hostname. They should point to the infrastructure intended to serve the website. An outdated IPv6 AAAA record can cause some visitors to reach a different server than visitors using IPv4. A CNAME may also route a subdomain to a separate platform with its own SSL setup.
DNS changes can take time to appear consistently because resolvers cache records. Do not assume that changing a record has immediately changed the server reached by every visitor. Compare DNS results from more than one network or use a trusted DNS inspection tool.
Certificate chain and installation
A server must usually provide the site certificate together with the intermediate certificates needed to establish trust. If the chain is incomplete, some browsers or devices may reject the connection even though the certificate itself has not expired. Reinstall the certificate using the hosting provider’s documented certificate and private-key fields, or use the provider’s automated SSL feature when available.
Do not paste a private key into a public diagnostic tool or share it in support forums. If you suspect the private key has been exposed, treat it as compromised and replace the certificate and key through the appropriate provider.
Mixed content and application URLs
A mixed content error occurs when an HTTPS page requests an image, script, stylesheet, font, video, iframe, or other resource over plain HTTP. Browsers may upgrade some requests, block others, or show a warning. Inspect the browser’s Developer Tools console to identify the exact insecure URL.
Update hard-coded asset URLs, theme or plugin settings, database values, and third-party embeds. In WordPress, confirm that both the WordPress Address and Site Address use https://, then clear application, page, and CDN caches. Test important templates rather than checking only the homepage.
Redirects and CDN settings
HTTPS redirect loops commonly occur when a CDN terminates HTTPS at the edge but the origin server believes the request is HTTP. Check the CDN’s SSL mode, origin protocol, forwarded-protocol handling, and redirect rules. Use one clear policy: visitors should be redirected from HTTP to HTTPS, while communication between the CDN and origin should match the origin’s actual certificate and configuration.
Also look for overlapping redirects in the CDN, hosting panel, web server configuration, CMS, and plugins. Multiple systems attempting to enforce different URL formats can create loops or repeated redirects.
Quick reference table
| Browser or tool message | Likely cause | First check |
|---|---|---|
| Certificate expired | Renewal failed or an old certificate is being served | Expiration date and the server or CDN delivering the certificate |
| Name mismatch | The certificate does not include the requested hostname | Certificate names, DNS target, and www configuration |
| Connection not private | Invalid certificate, trust problem, incorrect time, or chain issue | Certificate details, device clock, and intermediate chain |
| Mixed content | HTTPS page loads one or more HTTP resources | Browser console and application asset URLs |
| Too many redirects | Conflicting HTTPS or proxy rules | CDN mode, origin protocol, and redirect layers |
| Secure connection failed | Protocol, server, DNS, or certificate-chain problem | DNS destination, server response, and command-line inspection |
Cadence and checkpoints
Check certificate status at least monthly for important websites, even when automatic renewal is enabled. A monthly check should confirm the certificate’s remaining validity, covered hostnames, renewal status, and the result from an independent browser or monitoring location. Automatic renewal reduces routine work but does not guarantee that the renewed certificate is installed on every endpoint.
Run a broader checkpoint quarterly. Test the root domain, www hostname, key subdomains, HTTP-to-HTTPS redirection, login and checkout pages, contact forms, images, scripts, and major mobile page templates. If the website uses a CDN, test both public delivery and the configured origin where practical.
Repeat the full review after a domain transfer, nameserver change, hosting migration, server replacement, WordPress URL change, CDN change, or certificate-provider change. Record what changed and test from a private browser window so cached certificates, redirects, and assets do not hide the problem.
For a broader performance baseline, pair HTTPS checks with the process in How to Test Web Hosting Performance. Security and performance issues can share the same root cause, particularly after a migration or DNS change.
How to interpret changes
Use the following decision sequence:
- Identify the exact failing URL. Test the root domain,
www, and any affected subdomain separately. - Read the certificate details. Check the expiration date, hostname coverage, issuer, and chain.
- Confirm DNS. Compare the hostname’s records with the server or CDN that should answer for it.
- Check the hosting or CDN panel. Confirm that SSL is enabled for the same hostname and that the certificate is attached to the active service.
- Inspect the application. Look for HTTP asset URLs, incorrect CMS addresses, cached redirects, and hard-coded links.
- Retest after one controlled change. Clear relevant caches and test again before changing another layer.
You can inspect a certificate from a terminal with a command such as curl -Iv https://example.com. The output can show the connection endpoint, response status, and certificate negotiation. To inspect the certificate and chain more closely, use openssl s_client -connect example.com:443 -servername example.com -showcerts. Replace the example hostname with the domain you are testing. These commands require some technical familiarity, and their output can vary by operating system and server configuration.
If DNS points to the wrong host, fix DNS or the hosting assignment first. If DNS is correct but the certificate is wrong, fix the certificate installation or CDN binding. If the certificate is valid but the page still warns, inspect mixed content and application redirects. This order prevents you from changing website code when the actual problem is at the domain or server layer.
When to revisit
Revisit this checklist monthly for business-critical sites and quarterly for lower-risk sites. Schedule an immediate review when a certificate renewal notification arrives, a browser reports a warning, a host or CDN is changed, DNS records are edited, or visitors report that only some devices cannot connect.
After fixing an issue, verify more than the homepage. Open the HTTP and HTTPS versions, the www and non-www versions, important subdomains, forms, login pages, and representative content pages. Confirm that the final URL is HTTPS, the certificate matches the hostname, no mixed-content warnings appear, and redirects settle on one canonical URL.
Save the test date, result, certificate expiration, and any configuration change in a maintenance log. Keep renewal reminders with your domain and hosting records; the Domain Expiration and Renewal Checklist can help organize those dates. If the website has recently moved, also review the domain transfer and migration checklist.
When the same error returns, do not repeatedly renew the certificate without checking DNS, the active endpoint, and the CDN. Recurring failures usually indicate a renewal workflow, hostname mapping, or infrastructure mismatch that needs a durable fix.