SSL Error Bad MAC Alert: Causes & Fixes
In this article
The "SSL error bad MAC alert" (often seen as ERR_SSL_BAD_MAC_ALERT in Chrome) means your browser and the server failed to verify the integrity of a message during the TLS handshake, usually due to corrupted data, mismatched encryption keys, or interference from security software. This error typically appears as a full-page warning that blocks you from loading a site, and it can be fixed by clearing your SSL state, disabling problematic extensions, or updating your system's date and time.
What Does "Bad MAC Alert" Actually Mean?
In TLS (the protocol that replaced SSL), every message sent between your browser and a website is authenticated with a Message Authentication Code (MAC). Think of it as a cryptographic checksum: the sender computes a short tag from the message contents and a secret key, and the receiver recomputes it. If the two don't match, the receiver knows the message was altered in transit or that the encryption keys are out of sync. When this happens, the receiving side sends a "bad MAC alert" and terminates the connection. The alert is a security feature, not a bug—it prevents an attacker from silently tampering with your data.
Why Does This Error Happen?
The error can stem from several distinct causes, and the fix depends on which one you're dealing with:
- Corrupted cached SSL/TLS sessions: Your browser stores session data to speed up reconnections. If that data gets corrupted, the next handshake fails.
- Antivirus or firewall interception: Security software that performs SSL inspection (decrypting and re-encrypting traffic) can sometimes break the MAC if it mishandles the packets.
- Incorrect system time: TLS certificates are time-sensitive. If your device's clock is off by more than a few minutes, the handshake can fail with a MAC alert.
- Network issues: Packet loss, MTU problems, or a flaky Wi-Fi connection can corrupt data in transit, triggering the alert.
- Server-side problems: A misconfigured server or a load balancer that doesn't properly handle TLS can send malformed messages.
- Outdated software: Old browsers or operating systems may not support the cipher suites the server prefers, leading to negotiation failures that manifest as a MAC alert.
How to Fix the Error (Step-by-Step)
Try these fixes in order, from simplest to most involved. Most users resolve the issue with the first two steps.
- Clear your browser's SSL/TLS cache. In Chrome, go to Settings → Privacy and Security → Clear browsing data → Advanced, then check "Cached images and files" and "Cookies and other site data." In Firefox, go to Options → Privacy & Security → Clear Data. Alternatively, close the browser and clear the OS-level SSL cache (on Windows, use the "Internet Options" control panel → Content tab → Clear SSL state).
- Check your system date and time. Ensure they're set to automatic and correct for your timezone. Even a 5-minute drift can cause TLS failures.
- Temporarily disable antivirus or firewall SSL scanning. Look for a setting like "HTTPS scanning" or "SSL inspection" and turn it off. If the error disappears, re-enable the feature and add an exception for the site.
- Disable browser extensions. Some extensions (especially VPN or proxy tools) interfere with TLS. Test in incognito mode (which disables most extensions) or disable them one by one.
- Restart your router and device. This clears network glitches and resets connections.
- Update your browser and operating system. Newer versions fix known TLS bugs and support modern cipher suites.
- Try a different network. If the error only happens on one network (like a corporate or public Wi-Fi), the network's firewall may be the culprit.
- If you're the website owner: Check your server's TLS configuration, renew certificates, and ensure your load balancer isn't stripping or altering TLS records.
Common Misconceptions
Many people assume this error means their computer is hacked or the website is malicious. That's rarely the case. The MAC alert is a cryptographic safeguard that fires whenever integrity checks fail, and the most common triggers are benign (corrupted cache, time drift). Another misconception is that the error only affects old browsers—it can happen on any browser, though older versions are more prone due to outdated TLS implementations.
How to Prevent It in the Future
Prevention is mostly about maintaining a healthy system:
- Keep your OS, browser, and antivirus software updated.
- Avoid using public Wi-Fi without a trusted VPN (though the VPN itself can sometimes cause the issue if misconfigured).
- If you manage a website, use a reputable TLS certificate and configure your server with modern protocols (TLS 1.2 or 1.3).
- Regularly clear your browser cache to avoid corrupted session data.
When It's Not Your Fault
Sometimes the problem is entirely on the server side. A website may have a misconfigured CDN, an expired certificate, or a faulty load balancer. In that case, you can't fix it—you can only wait or contact the site administrator. To confirm, try accessing the site from a different device or browser. If it fails everywhere, the server is likely the issue.
Frequently Asked Questions
Does this error mean my data was stolen?
No. The MAC alert actually prevents data from being exchanged if tampering is detected. It's a protective mechanism, not a sign of a breach.
Why does it happen on only one website?
If it's site-specific, the server's TLS configuration is the most likely culprit. It could also be that the site uses a cipher suite your browser doesn't support, or the site's CDN is having issues.
Will clearing my browser cache delete my passwords?
Clearing SSL cache specifically won't delete passwords. However, if you choose "cookies and other site data," you'll be logged out of sites. Passwords stored in your browser are not removed by clearing browsing data unless you explicitly select "Passwords."
Is it safe to disable my antivirus's SSL scanning?
It's generally safe for a short test, but disabling it permanently reduces your protection against malicious websites. If you must keep it disabled, ensure your firewall is active and you practice safe browsing.
Does this error occur on mobile devices?
Yes, it can happen on any device that uses TLS, including phones and tablets. The fixes are similar: clear the browser cache, check the date/time, and update the OS.
Can a VPN cause a bad MAC alert?
Yes. VPN software that intercepts or modifies network traffic can break the MAC calculation. Try disconnecting the VPN to see if the error resolves.