Alejandro Rioja.
Scripts

How To Fix The Browsing Error "Your Connection is Not Private"?

Alejandro Rioja
Alejandro Rioja
8 min read
TL;DR

Fix "Your connection is not private" by refreshing, correcting your device clock, clearing browser cache/cookies, switching networks, or briefly disabling antivirus SSL scanning. Only proceed past the warning on sites you own or fully trust — never ignore it on banking or login pages.

Free newsletter

Every Wednesday. 28,400+ operators. Zero fluff.

Table of contents

Open Table of contents

What the Error Means

Before your browser opens a page, it validates the site’s TLS certificate (the successor to SSL, though the terms are still used interchangeably). The certificate does two jobs: it proves the site is who it claims to be, and it establishes the encrypted tunnel your data travels through.

When the check fails, the browser stops you before any data is exchanged. The reason could be:

  1. Expired or missing certificate — the cert’s validity window has passed or was never set up.
  2. Certificate / domain mismatch — the cert was issued for a different hostname (e.g., www.example.com but you’re hitting example.com).
  3. Untrusted certificate authority — the cert is self-signed or issued by a CA your browser doesn’t recognize.
  4. Wrong device clock — if your system date/time is off, valid certificates look expired.
  5. Antivirus or firewall intercept — some security tools do SSL inspection by injecting their own certificate, which can break validation.
  6. Public Wi-Fi captive portal — the hotel or coffee-shop login portal intercepts HTTPS before you authenticate.

As of Chrome 124+ and Firefox 128+, both browsers default to HTTPS-First mode, so you’ll see this warning more often than you did a few years ago.

How the Error Looks in Each Browser

The specific wording and error codes vary by browser, but the fix steps are the same.

Google Chrome

Chrome shows a red “Not secure” shield and the message “Your connection is not private”, followed by an error code that helps narrow down the cause.

Common Chrome codes in 2026:

Mozilla Firefox

Firefox says “Warning: Potential Security Risk Ahead” or “Your connection is not secure” and offers a button to view the technical details.

Common Firefox codes:

Safari

Safari shows a lock icon with a red line through it and the message “This Connection Is Not Private.” It warns that the site may be impersonating itself to capture your payment or personal information. Click Show Details for more information.

Microsoft Edge

Edge displays “Your connection isn’t private” using the same Chromium engine as Chrome, so the error codes are identical to Chrome’s. You may also see DLG_FLAGS_INVALID_CA or DLG_FLAGS_SEC_CERT_CN_INVALID.

How to Fix “Your Connection is Not Private”

Work through these in order — most people resolve the issue within the first three steps.

1. Reload the Page

Press F5 (Windows/Linux) or Cmd + R (Mac). A transient network hiccup or a server momentarily serving a bad cert can trigger the warning once and then clear itself.

2. Try Incognito / Private Mode

Open a new incognito window (Ctrl + Shift + N in Chrome/Edge, Cmd + Shift + N on Mac, Ctrl + Shift + P in Firefox) and load the URL again. Incognito starts with a clean slate — no cached certs, no interfering extensions. If it works in incognito but not your regular session, clear your cache (step 4).

3. Check Your Device Clock

This is the most underrated cause of SSL errors. TLS certificate validation is time-sensitive. If your system clock is even a few minutes off, valid certs appear expired.

Mac (macOS Sequoia / Sonoma): System Settings → General → Date & Time → make sure “Set time and date automatically” is on.

Windows 11: Right-click the clock in the taskbar → Adjust date/time → “Set time automatically” should be on. If it’s already on and the time is still wrong, click “Sync now.”

4. Clear Browser Cache and Cookies

Your browser stores cached copies of certificates. A cached bad cert will keep blocking you even after the site owner fixes the issue.

5. Switch Networks

If you’re on public Wi-Fi, disconnect and try mobile data or a trusted home/office network. Airport and hotel networks often intercept HTTPS to show a captive portal login page, which breaks certificate validation.

If you’re frequently on untrusted networks, a reputable VPN encrypts your traffic before it leaves your device. I use Surfshark VPN — it has a 30-day money-back window if you want to try it.

6. Check Your Antivirus or Firewall

Many antivirus programs include an “SSL scanning” or “HTTPS inspection” feature that intercepts TLS traffic to scan it for malware. When the antivirus injects its own certificate and your browser doesn’t recognize the antivirus CA as trusted, you get the warning.

Temporarily disable HTTPS scanning in your security software’s settings and see if the error clears. If it does, check your antivirus vendor’s documentation for how to add the site to its trusted list rather than leaving scanning disabled.

7. Proceed Manually — With Real Caution

If you’ve worked through all six steps and the error persists, Chrome and Edge offer an “Advanced” option followed by “Proceed to [site] (unsafe).” Firefox shows “Accept the Risk and Continue.”

When proceeding is reasonable: A self-hosted dev server or an internal tool you control with a self-signed certificate.

When you must not proceed: Any site asking for a login, payment, or personal data you care about. The whole point of the certificate is to protect that data in transit. Bypassing it on untrusted sites means your credentials and payment details can be intercepted in plaintext.

The Chrome “secret” passphrase thisisunsafe (type it directly on the error page without clicking any field) still works in Chrome 124+ as a developer escape hatch. Use it only on sites you own or fully trust.

Wrapping Up

The “Your connection is not private” warning is your browser doing its job. Most legitimate causes are fixable in under two minutes — reload, fix your clock, clear cache, or switch networks. Antivirus SSL inspection is the trickiest to diagnose because the error looks the same as a real certificate problem.

The one rule I’d keep front and center: never click through the warning on a banking site, email login, or any page that handles real credentials. Those are the exact attack scenarios the warning exists to prevent.

If you’re a site owner seeing this error on your own domain, the fastest fix is usually renewing your Let’s Encrypt certificate via your hosting panel or running certbot renew on the server.


This guide is part of alejandrorioja.com — written by Alejandro Rioja, who now builds AI agent systems for founders. Including the agent that keeps this site current. How it works →

Updated for May 2026

A couple of 2026 updates to the specific advice in this post:

SSL / “Your Connection is Not Private” — 2026 FAQ

Why is this error more common in 2026 than it used to be?

Chrome 124+ and Firefox 128+ both default to HTTPS-First mode, which means the browser attempts HTTPS before HTTP on every request. Any site still serving plain HTTP — or one whose TLS certificate has even minor issues — now triggers the warning where it previously would have loaded silently. It’s the right trade-off for security; it just means you’ll see the screen more often.

My clock is correct and the cert isn’t expired — why am I still seeing it?

The most likely culprits when the obvious causes check out: (1) antivirus SSL inspection injecting its own certificate, (2) a corporate proxy or firewall doing TLS inspection, (3) a captive portal on public Wi-Fi that hasn’t authenticated yet, or (4) the site’s certificate is technically valid but uses a deprecated algorithm (SHA-1) or an intermediate chain that your browser no longer accepts. For (4), the site owner needs to fix their cert configuration.

Is it ever safe to click “Proceed anyway”?

Yes, in limited circumstances: a local dev server, a self-hosted home lab tool, or an internal company resource with a self-signed cert that you personally set up and trust. It is never safe to proceed on any site requesting a password, payment, or personal information you care about. The warning exists precisely to protect that data.

I’m the site owner — how do I fix this for my visitors?

Check that your Let’s Encrypt (or other CA) certificate has not expired — certbot renew or your hosting panel’s SSL section. Verify the certificate covers the exact hostname your visitors use (including or excluding www). Make sure your server is sending the full certificate chain, not just the leaf cert. Tools like SSL Labs’ free SSL Test give you a graded report in under a minute.

Related reading:

Keep reading

Get the AI playbook in your inbox

Every Wednesday. 28,400+ operators. Zero fluff.

↵ to see all results esc esc to close