User Agents

Web browsers and everyday web tech, explained

How to Clear SSL Cache and State (When It Helps)

· 6 min read · Cookies and Cache

In this article
  1. What You’ll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing SSL-related cache and state resets the stored security certificates, session keys, and connection data that your browser or operating system keeps for HTTPS websites. This fixes many connection errors like SSL_ERROR_HANDSHAKE_ALERT_UNEXPECTED, ERR_SSL_PROTOCOL_ERROR, or sites that suddenly show “Your connection is not private” despite having a valid certificate. You usually need to do this after a website updates its SSL certificate, after changing your system date/time, or when you get persistent SSL warnings that other devices don’t see.

What You’ll Need

  • Access to your browser’s settings (Chrome, Firefox, Edge, Safari, etc.)
  • Administrator rights on your computer (for clearing OS-level SSL state)
  • Optional: a command prompt or terminal window (for advanced methods)

Step-by-Step

For Google Chrome (Windows, macOS, Linux)

  1. Open Chrome and click the three-dot menu in the top-right corner.
  2. Go to Settings → Privacy and security → Security.
  3. Scroll down to the Advanced section and click Manage certificates (or “Manage device certificates” depending on version).
  4. In the certificate window, go to the Trusted Root Certification Authorities tab and look for any certificates related to the site you’re having trouble with. If you see one, select it and click Remove.
  5. Close the certificate window, then go back to the main Chrome settings and click Clear browsing data.
  6. In the popup, set the time range to All time, check the boxes for Cached images and files and Cookies and other site data, then click Clear data.
  7. Fully restart Chrome and try the website again.

For Mozilla Firefox

  1. Open Firefox and click the three-line menu (hamburger) in the top-right.
  2. Select Settings → Privacy & Security.
  3. Scroll to the Certificates section and click Manage Certificates.
  4. In the Servers tab, find any entry for the problematic site and click Delete (or “Remove”).
  5. Click OK to close, then scroll up to Cookies and Site Data and click Clear Data.
  6. Check both boxes (Cookies and Site Data and Cached Web Content) and click Clear.
  7. Restart Firefox and reload the site.

For Microsoft Edge (Chromium-based)

  1. Open Edge and click the three-dot menu (top-right) → Settings.
  2. Go to Privacy, search, and services → Security.
  3. Under Manage certificates, click Manage certificates and remove any certificate for the problematic site from the Trusted Root Certification Authorities or Intermediate Certification Authorities tabs.
  4. Go back to Privacy, search, and services and click Choose what to clear under “Clear browsing data”.
  5. Set time range to All time, check Cached images and files and Cookies and other site data, then click Clear now.
  6. Restart Edge.

For Safari (macOS)

  1. Open Safari and go to Safari → Settings (or Preferences).
  2. Click the Privacy tab and then Manage Website Data.
  3. In the search box, type the domain you’re having trouble with. Select it and click Remove.
  4. Close that window, then go to the Advanced tab and check “Show features for web developers” at the bottom.
  5. Now go to the Develop menu in the top menu bar and click Empty Caches.
  6. Restart Safari.

For Windows (OS-level SSL state)

  1. Close all browsers.
  2. Press Windows + R, type cmd, and press Enter to open Command Prompt.
  3. Type certutil -urlcache * delete and press Enter. This clears the SSL certificate cache used by Windows.
  4. Type ipconfig /flushdns and press Enter to flush DNS (often related to SSL issues).
  5. Restart your computer.

For macOS (OS-level SSL state)

  1. Open Keychain Access (from Applications/Utilities).
  2. In the search box, type the domain name of the site.
  3. If you see any certificate for that site, right-click it and select Delete (or drag it to the trash).
  4. Close Keychain Access, then open Terminal (from Applications/Utilities).
  5. Type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and press Enter. Enter your admin password when prompted.
  6. Restart your Mac.

Common Mistakes

  • Only clearing cookies, not cached images/files. SSL state is often stored in the cached files, so you must clear both.
  • Not restarting the browser after clearing. Some processes keep the old SSL state in memory until you fully quit and reopen.
  • Deleting the wrong certificate. If you remove a legitimate root certificate (like one from your company), you may break other sites. Always target the specific site’s certificate or use the “Servers” tab in Firefox.
  • Forgetting to clear the OS-level cache. On Windows, the certutil command is essential for some errors; skipping it may leave the problem.
  • Assuming it’s always an SSL cache issue. If the problem persists after clearing, check your system date/time or the website’s actual certificate.

Tips

  • Before clearing everything, try a quick test in an Incognito/Private window – if the site works there, the cache is likely the culprit.
  • If you use a VPN or proxy, disconnect temporarily to rule out a network-level SSL interception.
  • Keep your browser and OS updated – many SSL issues are fixed by updates.
  • If you’re a developer, you can use browser DevTools (F12) → Network tab → right-click → “Clear browser cache” to do it more selectively.
  • For frequent issues with one site, consider adding it to your browser’s “Exceptions” for certificates only if you trust the site.

Troubleshooting

If the problem persists after clearing:

  • Check your system date and time. An incorrect clock causes SSL certificate validation failures. Set it to automatic.
  • Test on another device or network. If the site works elsewhere, the issue is local to your machine or network.
  • Try a different browser. If only one browser fails, that browser’s profile may be corrupted. Create a new profile or reinstall.
  • Check for antivirus or firewall interference. Some security software performs SSL inspection; temporarily disable it to test.
  • Use an online SSL checker (like SSL Labs) to verify the site’s certificate is valid from an external perspective.
  • If you’re on a corporate network, the IT department may have installed a custom root certificate – don’t delete it without consulting them.

Frequently Asked Questions

Will clearing SSL cache log me out of websites?

Yes, clearing cookies and site data will log you out of most sites. You’ll need to sign in again.

Is it safe to delete all certificates?

No. Only delete certificates for the specific site you’re troubleshooting. Deleting trusted root certificates can break many sites.

How often should I clear SSL cache?

Only when you encounter SSL errors. There’s no need for regular clearing; it can slow down browsing by forcing re-verification.

Does clearing SSL cache affect my saved passwords?

No, passwords are stored separately. Clearing cookies and cache will not delete saved passwords.

Why does the SSL error appear only on one device?

That usually means the device’s cache or system time is off, or it has a stale certificate stored. Clearing the cache on that device usually fixes it.

Can I clear SSL state on mobile browsers?

Yes, but the steps vary. On Android Chrome, go to Settings → Privacy → Clear browsing data. On iOS Safari, go to Settings → Safari → Clear History and Website Data.