bad record mac SSL / TLS Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

SSL error: bad record mac (decryption failed or corrupted TLS record)

A TLS record failed its integrity check, so the connection is dropped.

Exact message you may see bad record macSSL3_READ_BYTES:sslv3 alert bad record macerror:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mactlsv1 alert bad record mac
Seen on: SSL OpenSSL

Meaning

Causes include a buggy middlebox/load balancer or TLS offload, mismatched session keys after session resumption across servers, MTU/packet corruption, a misconfigured proxy mixing TLS sessions, or an OpenSSL bug. Disable session tickets/offload to test, update TLS libraries and check network devices.

Common causes

  • Faulty NIC offload or middlebox
  • Session ticket keys not shared across servers
  • Proxy terminating TLS inconsistently
  • Packet corruption/MTU issue
  • Library bug or thread-safety problem

⚡ Quick fix

  1. Try without session tickets/offload
  2. Share ticket keys across backends
  3. Update OpenSSL and check network hardware

Detailed fix by platform

Nginx

  1. ssl_session_tickets off;

How to diagnose

  1. Offload — Enabled?
  2. Tickets — Shared?
  3. Network — Corrupting?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

530 — 530 5.7.0 Must issue a STARTTLS command first (TLS required before AUTH or sending) (Email / SMTP)530curl 56 — curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104 (TLS connection dropped mid-transfer) (SSL / TLS)curl 56disabledAlgorithms — Java: SSLHandshakeException — TLSv1/TLSv1.1 or algorithm disabled by jdk.tls.disabledAlgorithms (SSL / TLS)disabledAlgorithmsDjango — Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port) (Email / SMTP)DjangoEOF occurred in violation of protocol — Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) (SSL / TLS)EOF occurred in viola…Failed to find a valid digest in the 'integrity' attribute — Console: Failed to find a valid digest in the 'integrity' attribute for resource … with computed SHA-256 integrity (Browser)Failed to find a vali…Go TLS — Go: tls: first record does not look like a TLS handshake (HTTP server spoken to with HTTPS) (SSL / TLS)Go TLSinternal error — tlsv1 alert internal error — the TLS peer hit an internal problem during the handshake (SSL / TLS)internal errorbad recor…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.