SSL Certificate Errors: Common Browser Codes, Causes, and How to Fix Them
An SSL certificate error is a browser security block triggered when a web server fails to present a valid, trusted TLS certificate matching the requested domain name. Browsers halt the connection (Your connection is not private) to prevent data interception. The specific error code identifies expired dates, hostname mismatches, or untrusted issuers.
8 Common SSL Certificate Error Codes and What Each Means (Reference Table)
Web browsers (Chrome, Edge, Brave, Firefox, and Safari) display 8 distinct SSL/TLS error codes depending on which step of certificate validation or TLS handshake negotiation failed. The table below maps each browser error code to its exact technical cause and primary fix.
| Browser Error Code | Validation Failure Cause | Primary Server-Side Fix |
|---|---|---|
NET::ERR_CERT_COMMON_NAME_INVALID (SSL_ERROR_BAD_CERT_DOMAIN) | Certificate SAN entries omit the requested domain or subdomain. | Reissue certificate covering apex domain and www subdomain. |
NET::ERR_CERT_DATE_INVALID (SEC_ERROR_EXPIRED_CERTIFICATE) | Certificate validity window expired or local client clock drift occurred. | Renew certificate and establish automated renewal timers. |
NET::ERR_CERT_AUTHORITY_INVALID (SEC_ERROR_UNKNOWN_ISSUER) | Server deploys self-signed certificate or omits the intermediate chain. | Install fullchain bundle signed by a recognized Certificate Authority. |
ERR_SSL_VERSION_OR_CIPHER_MISMATCH | Client and server share no overlapping TLS protocol or cipher suite. | Activate TLS 1.2 and TLS 1.3 on origin web server. |
ERR_SSL_PROTOCOL_ERROR | Server returns unencrypted plaintext HTTP data across port 443. | Configure port 443 virtual host listeners with active TLS directives. |
NET::ERR_CERT_REVOKED | Issuing authority marked certificate revoked via CRL or OCSP. | Generate a fresh private key and request immediate certificate reissuance. |
| Cloudflare Error 525 / Error 526 | Error 525 indicates origin handshake failure; Error 526 flags invalid origin cert. | Deploy trusted certificate on origin host under Full (Strict) mode. |
| Mixed Content Warning | Encrypted HTTPS HTML document embeds unencrypted HTTP subresources. | Rewrite embedded asset paths to relative URLs or https endpoints. |
Modern browsers prevent users from clicking past an SSL error with a bypass option on domains enforcing strict transport controls. Websites publishing an HSTS header through HSTS: HTTP Strict Transport Security instruct browsers to disallow security overrides permanently, blocking potential man-in-the-middle attacks. Foundational encryption mechanics appear in our guide to What Is SSL/TLS.
How to Fix the 5 Most Common Server-Side SSL Certificate Errors
Website administrators resolve server-side SSL warnings by correcting 5 core certificate configurations across Subject Alternative Names, automated renewal timers, intermediate CA chains, SNI virtual hosts, and mixed HTTP assets. Server-side certificate faults account for the majority of persistent user-facing warnings:
- Fix
ERR_CERT_COMMON_NAME_INVALID(Include Both Root and Subdomain in SAN List): Modern web browsers ignore the legacy Common Name field and validate hostnames strictly against the Subject Alternative Name extension. Issuing a certificate exclusively for the apex domain triggers a warning whenever visitors access the www subdomain. Securing both names on a single certificate or deploying a wildcard record eliminates domain mismatch errors; confirm whether your zone returns single-level or multi-level wildcard answers with the Wildcard DNS tester. - Fix
ERR_CERT_DATE_INVALID(Automate 90-Day ACME Renewals): Free certificates from Let's Encrypt and ZeroSSL expire every 90 days. Industry standards from the CA/Browser Forum continue shortening certificate lifespans toward a 47-day limit by 2029. Automated certbot systemd timers or cron jobs renew certificates at the 60-day mark and trigger web server reloads prior to expiration, supported by Let's Encrypt: Free Certificates and ACME Automation. - Fix
ERR_CERT_AUTHORITY_INVALIDon Mobile Devices (Servefullchain.pem): Desktop browsers frequently fetch missing intermediate certificates through authority information access chasing, whereas Android, iOS, curl, and OpenSSL require complete certificate chains. Web servers pointing configuration directives tocert.pemalone serve incomplete chains to mobile clients. Updating server configuration to deployfullchain.pem(the leaf certificate combined with intermediate CA certificates) resolves mobile verification failures, detailed in Certificate Authorities and the Web of Trust. - Fix
ERR_SSL_VERSION_OR_CIPHER_MISMATCH(Enable TLS 1.2/1.3 and SNI): Outdated web servers that restrict connections to deprecated TLS 1.0 and TLS 1.1 trigger handshake aborts on modern browsers. Configuring web servers to support TLS 1.2 and TLS 1.3 establishes modern cipher suites and universal client compatibility. Activating SNI enables servers hosting multiple virtual domains on a single IP address to present the correct certificate during the handshake, referenced in TLS 1.0 to 1.3: Versions Compared. - Fix Mixed Content Padlock Warnings (Audit Insecure Asset Calls): Modern browsers block unencrypted passive images and active scripts loaded from HTTPS pages. Auditing application templates and migrating asset calls to secure paths eliminates mixed resource warnings, guided by Mixed Content Warnings.
Updating or renewing a certificate in NGINX or Apache requires a web server process reload (sudo systemctl reload nginx or sudo systemctl reload apache2) to replace the active certificate cached in server memory.
How Do DNS Misconfigurations Cause SSL Certificate Errors? (4 DNS Root Causes)
Flawed DNS configurations trigger browser SSL certificate errors even when web server software is configured properly, stemming from 4 DNS misconfigurations across A and AAAA records, CAA policies, ACME challenges, and CDN proxy modes. Authoritative DNS settings govern client routing and certificate issuance authorities:
- Mismatched A or AAAA IP Addresses: Updating an IPv4 A record while leaving an obsolete IPv6 AAAA record pointing to a legacy host routes IPv6 visitors to an unconfigured server. That legacy endpoint lacks matching certificates for the target domain and triggers common name invalid warnings. Confirming host IP alignment across both protocol families is accessible through the A Record Lookup tool.
- Restrictive CAA Record Rules: A CAA Record designates authorized certificate issuers for a specific namespace. Specifying single commercial authorities forbids alternative automated providers from issuing certificates, causing automatic renewals to fail silently. Verifying authorized certificate issuers prevents issuance disruption, inspectable via the CAA Record Lookup utility.
- Stale DNS Propagation During ACME Validation: Automated certificate issuing protocols rely on ACME HTTP-01 or DNS-01 challenges to confirm domain control. Running issuance tools before global nameservers synchronize prevents validation nodes from discovering challenge responses. Verifying worldwide nameserver updates precedes certificate requests via the DNS Propagation Checker.
- Cloudflare SSL/TLS Encryption Mode Mismatches: Setting CDN encryption modes to Flexible instructs proxy edges to connect to origin servers over unencrypted port 80, sparking redirect loops on servers enforcing HTTPS. Configuring Full (Strict) mode against servers presenting self-signed or expired certificates generates Cloudflare Error 526 warnings.
Investigating live A, AAAA, and CAA records in DNS represents the fastest first diagnostic step whenever an SSL error manifests following domain migration or CDN activation. Install a valid Let's Encrypt certificate or a 15-year Cloudflare Origin CA certificate on your origin web server when migrating to Cloudflare, because the encryption-mode change only terminates TLS correctly when the origin itself presents a certificate your zone trusts.
Queries A, AAAA, CNAME, and CAA across 1.1.1.1 and 8.8.8.8: detects Cloudflare-proxied IPs (check Full (Strict) vs Flexible for 525/526 and redirect loops), restrictive CAA policies blocking renewal, and CNAME aliases whose target may lack your domain SAN.
How to Diagnose SSL Certificate Errors from the Terminal (openssl and curl)
Command-line tools (openssl and curl) bypass browser caches to inspect the raw certificate chain, expiration dates, SAN hostnames, and TLS version returned by your server on port 443. The table below lists the 4 essential terminal commands for diagnosing SSL errors.
| Diagnostic Goal | Terminal Command (Linux / macOS / Windows WSL) | What to Look For in Output |
|---|---|---|
| Inspect Full Certificate Chain & SNI | openssl s_client -connect example.com:443 -servername example.com | Review Certificate chain (leaf and intermediate) and Verify return code: 0 (ok). |
| Check Exact Expiration Dates, Subject & Issuer | curl -Iv https://example.com | Examine subject, start date, expire date, and issuer in handshake log. |
| Test Specific IP Before DNS Propagates | curl -Iv --resolve example.com:443:198.51.100.10 https://example.com | Validates certificate configuration on target IP directly prior to DNS change. |
| Verify CAA Authorization Records | dig example.com CAA +short | Confirms whether CAA records restrict authorized issuing certificate authorities. |
The -servername example.com parameter provides essential Server Name Indication context during the handshake. Omitting this flag forces virtual hosts and CDNs to serve default fallback certificates or terminate handshakes prematurely, generating false mismatch errors.
How Website Visitors Can Fix Local SSL Warnings (5 Client-Side Steps)
Resolving an SSL warning that appears solely on your local device while the website loads normally for other visitors requires 5 local troubleshooting steps on your computer or phone:
- Synchronize your device system date and time settings: depleted hardware batteries reset device clocks to prior years, causing web browsers to reject valid certificates as not yet valid or expired.
- Sign in to public Wi-Fi captive portals: airport, hotel, and cafe routers intercept encrypted connections until terms of service acceptance completes, presenting untrusted proxy certificates.
- Disable third-party antivirus HTTPS scanning features: local endpoint security tools intercept TLS connections with custom root certificates, causing certificate authority invalid warnings.
- Flush local resolver caches and clear system SSL states: clearing stored DNS entries purges stale IP routing data using instructions in How to Flush DNS Cache.
- Test destination websites in private browser windows: browsing in private sessions bypasses corrupted browser extensions and cached connection states.
Local troubleshooting resolves client-side warning triggers arising from system time drift or aggressive network proxy interception.
Managing SSL certificate health combines accurate server provisioning with systematic DNS configuration. Monitoring domain records, establishing automated certificate renewal routines, and validating intermediate authority bundles prevents unexpected security warnings. Verify certificate issuer policy with the CAA Record Lookup & Checker before a renewal failure ever reaches your users.
Frequently asked questions
Why does my SSL certificate work on desktop computers but show an error on mobile phones?+
Your web server is missing the Intermediate Certificate Authority (CA) bundle. Desktop browsers often download missing intermediate certificates automatically in the background, whereas Android and iOS browsers do not. Update your server config to use fullchain.pem instead of cert.pem.
Can a DNS change cause an SSL certificate error?+
Yes, pointing an A or AAAA record to the wrong IP address (or leaving an old IPv6 AAAA record pointing to a previous web host) routes visitors to a server that does not have your domain's SSL certificate installed, triggering NET::ERR_CERT_COMMON_NAME_INVALID.
How long does it take for a new SSL certificate to start working?+
A new SSL certificate works immediately after issuance and installation on your web server (following an NGINX or Apache reload) because SSL certificates are served directly during the port 443 TLS handshake without DNS TTL caching. In production DevOps workflows, we recommend automating renewal hooks within certbot (such as --deploy-hook 'systemctl reload nginx') to eliminate web server reload oversights.
An invalid certificate error appeared after I moved my site behind Cloudflare. What causes it?+
An invalid certificate error or redirect loop on a Cloudflare-proxied website usually stems from a mismatch between your Cloudflare SSL/TLS encryption mode and your origin web server configuration. Flexible mode fetches your pages over unencrypted port 80 and loops on origins that force HTTPS, while Full (Strict) mode against a self-signed or expired origin certificate raises Cloudflare Error 526. Install a valid origin certificate and set the zone to Full (Strict).
Can a DNS record change cause an SSL certificate error in browsers?+
Yes, changing an A, AAAA, or CNAME record to point to a new web host, CDN, or parking page before provisioning a matching TLS certificate on that destination server immediately triggers NET::ERR_CERT_COMMON_NAME_INVALID or Cloudflare Error 526, and a restrictive CAA record blocks automated Let's Encrypt or ACM certificate renewals until the new CA is authorized.
Is it safe to click "Advanced -> Proceed to site (unsafe)" on an SSL error?+
No, bypassing an SSL warning is only safe on a server that you personally own when you understand the self-signed certificate source. Public websites and unencrypted Wi-Fi hotspots expose passwords and session tokens to man-in-the-middle interception whenever users click past certificate warnings. In practice, the most dangerous administrator habit is clicking past browser warnings on staging environments, which masks genuine certificate chain and trust store issues prior to production launch.
Last verified: 2026-11-28