Troubleshooting guide · dns-ssl · Published 2026-08-14 · 3 min read

SSL and TLS certificate errors

Understand SSL and TLS certificate errors, from hostname mismatch and expiry to mixed content and Cloudflare SSL mode, with the fix for each.

Flat editorial illustration showing a globe of orbiting nodes resolving into a key and shield form, dotted resolution paths converging.
Illustration: this article at a glance.

Symptoms

The browser shows an SSL warning or a full error page, or it refuses to load the site: "Your connection is not private", NET::ERR_CERT_COMMON_NAME_INVALID, NET::ERR_CERT_DATE_INVALID, or a mixed-content warning. The site may work over http while https fails, or the padlock may be gone on an inner page.

Editorial close-up illustration showing a globe of orbiting nodes resolving into a key and shield form, dotted resolution paths converging.
Illustration: a closer look at the technique described above.

Common causes

How to fix

  1. Read the exact error text. NET::ERR_CERT_COMMON_NAME_INVALID is a hostname coverage problem; NET::ERR_CERT_DATE_INVALID is expiration or clock skew (check both client and server clocks).
  2. Verify what the certificate covers. nslookup tells you where the site resolves; openssl s_client -connect example.com:443 or a browser certificate viewer shows the SAN names. If the visited hostname is not in the SAN list, that is the fix target.
  3. Set the domain and www to resolve to the same host and cover both hostnames in one certificate. Your hosting or CDN normally issues a single certificate covering example.com and www.example.com.
  4. Renew a certificate that stopped auto-renewing. Check the automation (Let's Encrypt/certbot, or your host) and confirm the validation records still point to the right server, especially after a host move.
  5. Fix mixed content. Load the page in dev tools, find the http:// requests on the Network tab, and update them to https://. Use protocol-relative or scheme-inheriting URLs so future pages cannot regress.
  6. Align SSL mode in Cloudflare with the origin. For a standard origin cert use Full; for a CA-issued origin cert use Full strict. If neither matches because there is no origin cert, use Flexible but ensure nothing on the origin forces http.
  7. Replace self-signed certificates on public-facing sites with one from a public CA. Use the host's one-click tool or certbot.

Prevention

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services