SSL errors can come from an expired certificate, an incorrect hostname, incomplete DNS or hosting setup, mixed content, or a redirect problem. This guide gives you a repeatable way to diagnose website HTTPS errors, verify certificates and TLS settings, repair mixed content, test redirects, and build a renewal checklist you can revisit after every infrastructure change.
Overview
An SSL certificate allows a browser to establish an encrypted HTTPS connection with your website. In everyday troubleshooting, “SSL” and “TLS” are often used interchangeably, although TLS is the protocol used by modern HTTPS connections. When something is wrong, the browser may show a certificate warning, a secure-connection failure, a redirect loop, or a page that loads with a broken padlock.
Start by identifying the exact symptom rather than changing several settings at once. Check the affected hostname, the time of the failure, and whether the problem appears on one device, one network, or everywhere. A certificate can be valid for www.example.com but not example.com, and a site can have a valid certificate while still loading insecure images, scripts, fonts, or stylesheets.
Before changing DNS or hosting settings, record the current configuration and take a backup where appropriate. If your site is managed through a cloud hosting dashboard, look for certificate status, covered domains, renewal logs, redirect controls, CDN settings, and the origin hostname. A deployment or DNS change can affect HTTPS even when the website files themselves have not changed. For a broader launch sequence, use the website deployment checklist.
What to track
Symptom-to-cause troubleshooting table
| Symptom | Likely causes | First checks |
|---|---|---|
| Certificate expired | Automatic renewal failed, the certificate was not installed, or the service is presenting an old certificate. | Check the certificate’s validity dates, renewal log, hosting panel, and the certificate actually served by the public hostname. |
| Hostname mismatch | The certificate does not include the requested domain or subdomain, or DNS points to the wrong service. | Compare the browser URL with the certificate names and verify the A, AAAA, or CNAME record for that hostname. |
| Certificate not trusted | The certificate chain is incomplete, the certificate is privately issued, or the device does not trust the issuing authority. | Test from another device and inspect the chain shown by the browser or a TLS inspection tool. |
| Secure page shows warnings | Mixed content is loading over HTTP, often from images, scripts, fonts, video, or embedded resources. | Open browser developer tools and inspect the Console and Security panels for HTTP resource URLs. |
| Too many redirects | HTTP-to-HTTPS rules conflict with a CDN, reverse proxy, application, or hosting panel. | Trace the redirect chain and check which layer is enforcing HTTPS. |
| Works at the origin but fails through the CDN | The CDN hostname, custom domain, edge certificate, origin certificate, or TLS mode is misconfigured. | Test the origin and public hostname separately, then review CDN domain and origin settings. |
Verify the certificate and hostname
Use the browser’s certificate viewer to check the subject or subject alternative names, validity period, issuing chain, and the hostname requested. The important question is not simply whether a certificate exists; it is whether the certificate currently served to visitors covers the exact hostname they enter.
Check every public variant that matters, such as the root domain, the www hostname, a staging hostname, and any subdomain used for an application or asset storage. Do not assume that a certificate installed for one hostname automatically covers another. Also verify DNS separately. The DNS records reference can help you map hostnames to the correct hosting, CDN, and email services.
Track renewal readiness
Maintain a simple certificate inventory with the hostname, certificate provider or issuing system, installation location, renewal method, owner, and last successful renewal test. Automatic renewal is useful, but it still depends on the domain resolving correctly, validation being possible, and the renewed certificate being installed on every relevant endpoint.
- Confirm that all required hostnames are included.
- Check that DNS still points to the intended hosting or validation service.
- Review renewal and deployment logs for warnings or failed attempts.
- Confirm that the CDN, load balancer, origin, and alternate production nodes are covered where applicable.
- Test the public site after renewal rather than relying only on a dashboard status.
Cadence and checkpoints
Use a monthly or quarterly review for sites that matter to customers, even when certificates renew automatically. The purpose is to catch DNS drift, abandoned subdomains, failed monitoring, and configuration changes before a visitor encounters an error.
Monthly check
- Open the site in a private browser window and test both the root domain and
wwwversion if both are supported. - Review certificate expiry, covered hostnames, and renewal status.
- Check monitoring for certificate, DNS, redirect, and availability failures.
- Look for new mixed-content warnings in browser developer tools.
Quarterly check
- Run a command-line HTTPS check from outside the hosting environment.
- Review TLS settings in the hosting panel, reverse proxy, or CDN and remove obsolete configuration only after confirming compatibility with your supported clients.
- Test redirects from HTTP to HTTPS, from the alternate hostname to the canonical hostname, and for important deep links.
- Confirm that staging, preview, and production domains are clearly separated. A preview environment workflow can reduce the risk of testing certificate changes on the live site.
After every infrastructure change
Repeat the checks after changing DNS, moving hosting providers, enabling a CDN, replacing a load balancer, changing the website builder’s custom domain, or deploying a new application. Include HTTPS validation in the same release checklist as backups, caching, and performance checks. The performance checklist is useful when CDN or asset URLs change.
How to interpret changes
A useful diagnostic separates the connection layer from the page layer. If the browser cannot establish HTTPS, investigate DNS, the certificate, the certificate chain, TLS negotiation, and the endpoint serving the certificate. If HTTPS connects successfully but the page is marked partly insecure, investigate page resources and application-generated URLs instead.
Repair mixed content systematically
- Open developer tools and identify each HTTP resource blocked or upgraded by the browser.
- Find the source of the URL in the page template, content management system, database, stylesheet, JavaScript bundle, or third-party integration.
- Change absolute
http://URLs tohttps://where the resource supports HTTPS. Prefer the site’s canonical HTTPS URL for first-party assets. - Update stored media and embed URLs if the website builder or CMS has retained old links.
- Clear application, CDN, and browser caches, then retest the page and important templates.
- Do not use a browser-side workaround as the permanent fix for a resource that cannot be delivered securely; replace, remove, or reassess that resource.
Test redirects and HSTS carefully
A normal redirect should lead visitors to one canonical HTTPS URL without loops or unnecessary hops. Test the response chain with a browser and command-line tools. For example:
curl -I http://example.com
curl -I https://example.com
curl -IL http://example.com
openssl s_client -connect example.com:443 -servername example.com
Replace example.com with the actual hostname. Review the returned status, Location header, certificate names, and certificate dates. The exact output varies by server and tool version, so treat it as evidence to investigate rather than a pass/fail score by itself.
HTTP Strict Transport Security, or HSTS, tells compatible browsers to prefer HTTPS for a domain. It can improve consistency, but it also makes recovery from a bad HTTPS configuration less forgiving. Enable it only after HTTPS works reliably for the intended hostnames and subdomains, and understand the scope of any subdomain or preload-related settings before changing them.
Browser-and-command-line validation template
Record the following for each check: date and time, tested hostname, network or monitoring location, browser result, certificate expiry, covered hostname, redirect destination, mixed-content findings, and command output or screenshot. This turns an isolated error into a trend that can reveal whether failures follow renewals, deployments, DNS changes, or CDN updates.
When to revisit
Revisit this troubleshooting guide monthly or quarterly, before a certificate renewal window, and immediately after DNS or hosting changes. Return to it whenever monitoring reports an HTTPS failure, a browser warning appears, a new subdomain is launched, a CDN is enabled, or a site is migrated between cloud hosting platforms.
When a problem appears, take these actions in order:
- Capture the exact URL, browser message, time, and affected hostname.
- Check DNS resolution and confirm the hostname reaches the intended endpoint.
- Inspect the certificate served publicly, including dates, names, and chain.
- Trace redirects and identify whether the hosting layer, application, proxy, or CDN controls them.
- Repair mixed content and retest representative pages, not only the homepage.
- Document the fix and add the relevant check to the next deployment or renewal review.
Keep certificate checks alongside backup and recovery procedures so an otherwise recoverable website does not remain inaccessible after an infrastructure incident. The backup and restore testing guide and recovery checklist can help complete that operational review.