SSL errors can come from an expired certificate, incorrect DNS, a misconfigured server, or a single insecure image or script. This reusable SSL troubleshooting checklist explains how to identify the cause, fix it safely, verify the result in a browser and from the command line, and prevent the same website HTTPS error from returning after a migration, renewal, or deployment.
Overview
SSL is commonly used to describe the certificate and encryption that enable HTTPS. More precisely, a website uses a TLS certificate to prove its domain identity and establish an encrypted connection. When the certificate, domain configuration, or page resources do not line up, browsers display warnings such as “Your connection is not private,” “NET::ERR_CERT_DATE_INVALID,” or “Not secure.” The exact wording varies by browser and operating system, but the troubleshooting process is similar.
Do not bypass a certificate warning on a production website until you understand it. A warning may indicate a harmless development configuration, but it can also mean that traffic is reaching the wrong server or that the certificate cannot be trusted. First record the affected URL, the exact browser message, and whether the issue affects all visitors or only one device or network.
Before changing settings, make sure you can access your hosting control panel, domain registrar, DNS management, and server or deployment configuration. If the site is managed by a hosting provider, check whether SSL installation and renewal are handled automatically. If you manage a VPS or custom web server, confirm where certificates are stored, which service terminates TLS, and how renewals are deployed.
Checklist by scenario
| Symptom | Likely cause | First checks |
|---|---|---|
| Expired certificate warning | The certificate validity period has ended or the server clock is incorrect. | Check the certificate dates, server time, renewal status, and whether the renewed certificate was installed. |
| Certificate is for another domain | The server is presenting a certificate for a different hostname, often after a migration or virtual-host change. | Check the requested hostname, DNS destination, server host configuration, and certificate subject names. |
| HTTPS works on one hostname but not another | A subdomain or alternate hostname is missing from DNS, the certificate, or the web-server configuration. | Test the apex domain, www hostname, and each active subdomain separately. |
| “Not secure” appears after the page loads | The page contains mixed content, such as HTTP images, scripts, stylesheets, fonts, or API requests. | Open browser developer tools, inspect the Console and Security panels, and replace HTTP references with HTTPS. |
| Redirect loop between HTTP and HTTPS | The server, application, proxy, or content management system is applying conflicting redirect rules. | Trace redirects, check proxy HTTPS headers, and keep one authoritative HTTPS redirect. |
| Certificate renewal repeatedly fails | The validation method cannot reach the domain, DNS points elsewhere, or a firewall blocks validation. | Check DNS records, port access, validation paths, redirects, and the renewal logs in the hosting panel or certificate client. |
| API or asset requests fail only on HTTPS | The endpoint lacks a valid certificate, uses an HTTP URL, or rejects the browser’s origin. | Test the endpoint directly over HTTPS and inspect browser network errors, CORS settings, and certificate coverage. |
1. Fix an expired or missing certificate
- Confirm the affected hostname. A certificate for example.com may not automatically cover every subdomain.
- Review the certificate’s start and expiration dates in the browser certificate viewer or hosting control panel.
- Check the renewal method. Managed hosting may provide an SSL or Security section with an install, renew, or automatic renewal status. On a self-managed server, review the certificate client and its scheduled renewal task.
- Make sure DNS points to the server that is expected to answer for the domain. Incorrect A, AAAA, or CNAME records can send validation requests or visitors to the wrong system.
- Install the complete certificate chain supplied by the certificate issuer, not only the site certificate. An incomplete chain can cause trust errors on some clients.
- Reload the relevant web server, reverse proxy, or load balancer if the platform requires it, then test again.
For DNS background, see DNS Records Explained: A, CNAME, MX, TXT, and More. Avoid deleting unrelated mail records while correcting web DNS.
2. Resolve a hostname mismatch
A hostname mismatch means the server responded with a valid certificate, but that certificate does not identify the hostname in the address bar. This commonly follows a domain transfer, hosting migration, new subdomain, or change to a proxy or CDN.
- List every hostname visitors use, including the root domain, www version, staging hostname, and important subdomains.
- Check that each hostname resolves to the intended service.
- Confirm the certificate includes those names and that the server selects the correct certificate for each virtual host.
- Check IPv4 and IPv6 records separately. An AAAA record can direct some visitors to a server with older or incorrect TLS settings.
When moving a domain, use a staged process rather than changing DNS and certificates simultaneously without a rollback plan. The guide on transferring a domain without losing email or website access covers related continuity checks.
3. Fix mixed content and redirect loops
Mixed content occurs when an HTTPS page requests a resource over HTTP. Replace hard-coded URLs in templates, stylesheets, JavaScript, image fields, database content, and API configuration. Start with resources that can affect page security or functionality, especially scripts, frames, forms, and XMLHttpRequest or fetch calls.
For a redirect loop, request the URL with a header-aware tool or inspect the browser’s network panel. Identify which component sends each redirect: the web server, application, control panel rule, reverse proxy, or CDN. A frequent configuration error occurs when a proxy connects to the origin over HTTP while the application does not receive the expected forwarded-protocol information. Correct the trusted proxy and HTTPS detection settings before adding more redirect rules.
What to double-check
Browser verification
- Test in a private window and in a second browser to reduce the effect of cached redirects or old certificate data.
- Open developer tools and check the Console, Network, and Security panels.
- Inspect the certificate issuer, validity dates, hostname coverage, and chain details.
- Load important pages, forms, images, scripts, fonts, and authenticated areas—not just the homepage.
Command-line verification
From a trusted administration system, curl -I https://example.com can show response headers and redirect behavior. Use curl -IL https://example.com to follow redirects and identify loops or unexpected destinations. For certificate details, an OpenSSL check such as openssl s_client -connect example.com:443 -servername example.com can help confirm which certificate the server presents. These commands require a shell and may display technical output; compare the hostname, dates, issuer, and chain rather than relying on one line.
Application and infrastructure verification
- Confirm the application’s configured site URL uses HTTPS.
- Check canonical URLs, sitemap URLs, webhook endpoints, and API base URLs.
- Verify that background jobs and integrations trust the certificate chain.
- Check load balancers, containers, reverse proxies, and origin certificates independently.
- Take a backup before changing server configuration or database URL values. See Website Backup Strategy for a practical backup planning checklist.
Common mistakes
- Installing a certificate for only one hostname: Include every production hostname visitors actually use, or redirect unused names only after they can establish a valid connection.
- Changing DNS without checking email: Web and mail records serve different purposes. Preserve MX, SPF, DKIM, and DMARC records during web changes.
- Adding multiple competing redirects: Keep HTTPS enforcement in one clearly documented layer where possible.
- Fixing the browser warning but not the application: Update stored HTTP URLs, API endpoints, webhooks, and content generated by plugins or themes.
- Testing only from the office network: DNS caches, IPv6, proxies, and local certificate stores can produce different results. Test from more than one network when practical.
- Ignoring renewal alerts: Record who owns the certificate, where renewal logs appear, and how to confirm that a renewed certificate is live.
- Disabling verification as a permanent fix: Bypassing TLS validation in a browser, script, or API client hides the underlying problem and weakens security.
When to revisit
Use this checklist before and after domain registration changes, DNS edits, hosting migrations, certificate renewals, CDN or proxy changes, and major deployments. Revisit it during seasonal planning cycles if your site receives increased traffic or relies on time-sensitive campaigns. It is also useful whenever a browser, hosting control panel, certificate client, or security policy changes its workflow.
Keep a short SSL inventory with each hostname, DNS destination, certificate owner, renewal method, expiration date, and responsible administrator. After every change, run this final acceptance check:
- Open the root domain and www version over HTTPS.
- Confirm the certificate matches the hostname and has a valid chain.
- Follow redirects and verify there is one intended canonical HTTPS destination.
- Check the browser console for mixed content and failed resource requests.
- Test forms, logins, payments or integrations, APIs, and webhooks that use the domain.
- Confirm renewal monitoring or reminders are active and that a recent backup is available.
If the error persists after DNS, certificate, server, and application checks, preserve the exact browser message and command output before contacting your hosting or infrastructure provider. That evidence usually identifies whether the remaining fault is at the domain, hosting, proxy, certificate-chain, or application layer.