When a TLS connection fails, the only clue the other side gives you is a one byte alert code, and most teams read it wrongly or not at all. Alerts tell you whether a handshake broke because of an expired certificate, an untrusted CA, a version mismatch, a missing client certificate or tampering on the wire. Read correctly, they cut troubleshooting from hours to minutes and give a monitoring signal for downgrade attempts, interception proxies and failing machine credentials. This reference lists every alert in the IANA TLS Alerts registry with its meaning and usual cause, explains how TLS 1.3 changed alert handling, and shows how to collect and use alerts in logs. It is for network, platform and security engineers who run TLS endpoints, service meshes and mTLS between workloads.
Last reviewed: November 2026. The registry and specifications cited were checked on 27 November 2026; TLS 1.3 is now specified in RFC 9846 (July 2026), which obsoletes RFC 8446 and RFC 5246.
Key takeaways
- An alert is two bytes: a level (1 warning, 2 fatal) and a description code from the IANA registry, carried in record content type 21.
- Who sent the alert matters as much as the code: a client sending unknown_ca (48) means the client does not trust your chain; a server sending it means it does not trust the client certificate.
- TLS 1.3 makes severity implicit: every error alert is fatal, the level field can be ignored, and alerts after the handshake are encrypted, so passive sensors see fewer of them.
- A few codes carry security weight: inappropriate_fallback (86), bad_record_mac (20), decrypt_error (51) and spikes of unknown_ca (48) can point to downgrade attempts, tampering or interception.
- Alert rates are a cheap health metric: counting alerts by code, peer and endpoint catches expiring certificates, broken trust stores and misconfigured mTLS before users or services fail.
How TLS alerts work
TLS carries alerts in their own record type (content type 21) alongside handshake (22) and application data (23) records. Each alert has two fields: an AlertLevel and an AlertDescription. Alerts fall into two classes.
- Closure alerts: close_notify (0) tells the peer the sender will send no more data; anything received after it must be ignored. user_canceled (90) means the handshake was abandoned for a reason unrelated to protocol failure and should be followed by close_notify. In TLS 1.3 each party must send close_notify before closing its write side unless it has already sent an error alert, and RFC 9846 notes that a party no longer has to answer close_notify with its own before closing.
- Error alerts: everything else. RFC 8446 states that upon transmission or receipt of a fatal alert, both parties must immediately close the connection, and that clients and servers must forget the secret values and keys established in failed connections (session ticket PSKs excepted).
- Encryption: alerts are protected by the current connection state like any other record. In TLS 1.3 that means everything after the ServerHello is encrypted, including most certificate failures, so a network sensor without keys sees an encrypted record, not the code.
- Logs, not packets: because of that encryption, the endpoint (web server, proxy, load balancer, client library) is usually the only reliable place to read alert codes in TLS 1.3.
For the full handshake sequence these alerts interrupt, see the How TLS Works Guide.
Alert codes reference
The table lists every assigned value in the IANA TLS Alerts registry (last updated 5 November 2026). Meanings follow RFC 9846 Section 6 and the RFCs named. All assigned values are marked usable in DTLS. Values marked RESERVED are historical: a current implementation must not send them.
| Code | Name | Meaning (spec) | Typical cause in practice |
|---|---|---|---|
| 0 | close_notify | Sender will send no more messages | Normal shutdown; its absence before TCP close can signal truncation |
| 10 | unexpected_message | Inappropriate message received | Implementation bug, middlebox interference, protocol confusion (for example plain HTTP to a TLS port) |
| 20 | bad_record_mac | A record could not be deprotected | Corruption or tampering in transit, broken offload hardware, key mismatch after a faulty resumption |
| 21 | decryption_failed_RESERVED | Historical (pre TLS 1.1) | Should never appear; seeing it means very old software |
| 22 | record_overflow | Record exceeds the length limit | Bugs, oversized records from misconfigured max fragment length |
| 30 | decompression_failure_RESERVED | Historical (compression removed) | Legacy stacks only |
| 40 | handshake_failure | No acceptable set of security parameters | No shared cipher suite, group or signature algorithm; often a hardened server meeting a legacy client |
| 41 | no_certificate_RESERVED | Historical (SSL 3.0) | Legacy only |
| 42 | bad_certificate | Certificate corrupt or signature does not verify | Malformed certificate, wrong key pair, broken chain order |
| 43 | unsupported_certificate | Certificate of an unsupported type | Key type or algorithm the peer does not accept |
| 44 | certificate_revoked | Certificate revoked by its signer | Revoked leaf or intermediate found via OCSP or CRL |
| 45 | certificate_expired | Certificate expired or not currently valid | Expired leaf or intermediate, or wrong system clock on either side |
| 46 | certificate_unknown | Unspecified problem makes the certificate unacceptable | Hostname mismatch, key usage or EKU problems, catch-all in some libraries |
| 47 | illegal_parameter | Field incorrect or inconsistent, though syntactically valid | Implementation bugs, middleboxes rewriting handshakes |
| 48 | unknown_ca | CA not found or not matched to a trust anchor | Missing intermediate, private CA not in the trust store, TLS inspection proxy CA not trusted |
| 49 | access_denied | Valid certificate or PSK, but access control refused | mTLS identity not authorised for that endpoint |
| 50 | decode_error | Message does not follow the formal syntax | Truncated or malformed messages, fuzzing, scanners |
| 51 | decrypt_error | Handshake cryptographic operation failed (signature, Finished, PSK binder) | Wrong private key, tampered handshake, PSK mismatch |
| 52 | too_many_cids_requested | DTLS 1.3 connection ID limit exceeded (RFC 9147) | DTLS peers requesting more connection IDs than allowed |
| 60 | export_restriction_RESERVED | Historical (export ciphers) | Legacy only |
| 70 | protocol_version | Peer's version recognised but not supported | Client offers only TLS 1.0 or 1.1 to a server that allows 1.2 and 1.3 only |
| 71 | insufficient_security | Server needs stronger parameters than the client offers | Client cipher list below server policy |
| 80 | internal_error | Local error unrelated to the peer | Memory failure, HSM or key store unavailable, crashing module |
| 86 | inappropriate_fallback | Client retried with a lower version than the server supports (RFC 7507) | Broken client fallback logic, or a downgrade attempt |
| 90 | user_canceled | Handshake cancelled for a non-protocol reason | User or application abort |
| 100 | no_renegotiation_RESERVED | Historical (renegotiation removed in TLS 1.3) | TLS 1.2 peers refusing renegotiation |
| 109 | missing_extension | Mandatory extension absent | Client lacking supported_versions, key_share or signature_algorithms |
| 110 | unsupported_extension | Extension not first offered in ClientHello or CertificateRequest | Server or middlebox bug |
| 111 | certificate_unobtainable_RESERVED | Historical (RFC 6066 client certificate URLs) | Legacy only |
| 112 | unrecognized_name | No server matches the SNI name (RFC 6066) | Wrong hostname, missing virtual host, SNI routing gap on a load balancer |
| 113 | bad_certificate_status_response | Invalid or unacceptable OCSP response | Stale or badly signed stapled OCSP response |
| 114 | bad_certificate_hash_value_RESERVED | Historical (RFC 6066) | Legacy only |
| 115 | unknown_psk_identity | No acceptable PSK identity (RFC 4279) | PSK not provisioned or rotated on one side only; servers may send decrypt_error instead |
| 116 | certificate_required | Server wants a client certificate but none was sent | mTLS client not configured with its certificate, or wrong certificate selected |
| 117 | general_error | No more specific error applies, or sender conceals the specific error | New in RFC 9846; expect it from stacks that hide failure detail |
| 120 | no_application_protocol | No ALPN protocol in common (RFC 7301) | Client offers only h2 or a custom protocol the server does not support |
| 121 | ech_required | Sent by the client when the server rejected ECH (RFC 9849) | Stale ECH configuration in DNS, server key rotation not published |
Every other value from 0 to 255 is unassigned. Treat an unknown code as an error alert, as RFC 9846 requires.
Alerts that signal attack or misconfiguration
Most alerts are operational noise. A small set deserves security attention, especially when they appear in bursts, from unexpected peers or on internal service traffic where configurations should be stable.
| Pattern | Benign explanation | Security reading | What to check |
|---|---|---|---|
| inappropriate_fallback (86) | Old client with naive retry logic | Attempted protocol downgrade by an on-path attacker (ATT&CK T1557 Adversary-in-the-Middle) | Client population, network path, whether retries cluster on one segment |
| bad_record_mac (20) or decrypt_error (51) bursts | Faulty NIC offload, buggy load balancer | Tampering with records or handshakes in transit | Hardware changes, path changes, other alerts from the same peers |
| Sudden rise in unknown_ca (48) from clients | Missing intermediate after a renewal | A new interception device presenting its own CA | Which certificate clients actually received; compare issuer with the expected chain |
| access_denied (49), certificate_required (116) on internal APIs | Service rolled out without its client certificate | A workload or attacker probing services it is not entitled to | Source workload identity, whether the caller should exist at all |
| certificate_expired (45) on service-to-service traffic | Renewal automation failed | Unmanaged machine identity outside the inventory | Owner of the certificate, issuing CA, renewal pipeline |
| protocol_version (70), handshake_failure (40) from many sources | Legacy clients after hardening | Scanners enumerating supported versions and ciphers | Source reputation, scan timing, matching JA3 or JA4 fingerprints |
| certificate_revoked (44) | Planned revocation not yet replaced | A compromised key still in use somewhere | Why it was revoked; which hosts still present it |
Client fingerprints help separate scanners from real clients; see the JA3 and JA4 TLS Fingerprinting Guide. For a revoked or leaked server key, follow the Leaked TLS Private Key Response.
Where identity fits
In mTLS between services, the client certificate is the workload's identity. Alerts 42, 45, 48, 49 and 116 on internal traffic are effectively authentication failures for non-human identities, and they deserve the same attention as failed logins for people. Track them per workload, and treat an unknown caller hitting certificate_required as an identity event, not a network blip. See the mTLS Guide.
Differences in TLS 1.3
| Aspect | TLS 1.2 (RFC 5246, now obsoleted) | TLS 1.3 (RFC 8446, now RFC 9846) |
|---|---|---|
| Alert level | Level decides behaviour; some alerts could be warnings | Severity implicit in the type; level can be ignored; all error alerts must be sent as fatal |
| Visibility on the wire | Handshake alerts usually sent in clear before ChangeCipherSpec | Encrypted from the server's handshake messages onward |
| Renegotiation | no_renegotiation used as a warning | Renegotiation removed; value 100 reserved |
| New alerts | None of the below | missing_extension (109), certificate_required (116); RFC 9846 adds general_error (117) |
| Closing | Peer answered close_notify with its own | Each side sends close_notify before closing its write side; no reply required |
| Downgrade defence | TLS_FALLBACK_SCSV (0x56, 0x00) with inappropriate_fallback | Built-in downgrade sentinel in ServerHello random; fallback SCSV still relevant for mixed fleets |
Two practical consequences follow. Packet capture gives you less in TLS 1.3, so endpoint logging becomes the primary source. And general_error lets implementations hide the real reason for failure, so expect less detailed alerts from some stacks and rely on the sending side's own logs. For version history and why older versions are retired, see SSL and TLS Versions Compared.
Troubleshooting workflow
- Establish direction: find out which side sent the alert. A "received alert" in client logs means the server rejected something about the client, and the reverse. Many tickets go wrong here.
- Read the endpoint logs on both sides: the sender usually logs the specific reason (for example a hostname mismatch behind certificate_unknown) even when the wire shows only a generic code.
- Group by code family: 42 to 48 point to certificates and trust stores; 40, 70 and 71 to version or cipher policy; 109, 110, 112 and 120 to extensions, SNI and ALPN; 49 and 116 to mTLS authorisation.
- Reproduce with a known client: connect with a diagnostic client while forcing the same SNI, version and ALPN, and capture the certificate chain actually served.
- Capture when needed: for TLS 1.2 or pre-encryption alerts, the Wireshark display filter
tls.record.content_type == 21isolates alert records, andtls.alert_message.descholds the code. For TLS 1.3, capture with session keys exported from a test client in a controlled environment, never from production user traffic. - Fix and verify: change one thing (chain, trust store, cipher policy, SNI mapping), retest, and watch the alert rate for that code fall.
- Roll back cleanly: keep the previous certificate and configuration until the new one is proven, so a hardening change that triggers a wave of protocol_version alerts can be reverted in minutes.
Certificate-family alerts have their own deep guides: the Expired Certificate Outage Troubleshooting Guide for 45, the x509 Certificate Signed by Unknown Authority Troubleshooting Guide for 48, and the Certificate Revocation Guide for 44 and 113. For ech_required, see the Encrypted Client Hello Guide.
Monitoring alerts in logs
- Collect at the endpoint: configure web servers, reverse proxies, load balancers and service mesh sidecars to log TLS handshake failures with the alert code, direction, peer address, SNI and, for mTLS, the presented certificate subject.
- Normalise codes: different stacks log names, numbers or library strings. Map them all to the IANA number so dashboards compare like with like.
- Baseline per endpoint: public sites always see scanner noise; internal service-to-service channels should see almost none. Alert on change, not absolute counts.
- Correlate with change records: a spike right after a certificate renewal or cipher policy change is almost always configuration, not attack.
- Retain for investigations: keep handshake failure logs long enough to cover your incident response look-back period.
Metrics that show it is working
| Metric | Why it matters | Target direction |
|---|---|---|
| Handshake failure rate per endpoint, by alert code | Core health signal | Low and stable; explained spikes only |
| certificate_expired alerts on internal traffic | Shows renewal automation gaps | Zero |
| Mean time from first alert spike to root cause | Tests whether teams can read alerts | Falling |
| Share of endpoints logging alert codes centrally | Coverage of the signal itself | Rising to all production TLS endpoints |
| inappropriate_fallback and unknown_ca anomalies investigated | Security follow-through | All triaged within an agreed time |
Common failure patterns
- Reading the alert from the wrong side: teams fix the server when the client sent unknown_ca because its own trust store was out of date.
- Relying on packet capture for TLS 1.3: sensors show encrypted alerts only, so the signal disappears unless endpoints log it.
- Treating certificate alerts as outages, not inventory findings: each certificate_expired on a machine channel is evidence of an unmanaged credential. See the Certificate Expiry Outages and 47-Day TLS Certificates Guide.
- Silencing unknown_ca by disabling verification: a developer who turns off certificate checks to clear the error removes server authentication entirely. Fix the chain or trust store instead; see How to make developer tools trust a TLS-inspecting corporate proxy safely.
- Ignoring downgrade signals: inappropriate_fallback is rare on modern fleets, so each occurrence is worth a look. The Historic TLS Attacks Guide shows why downgrades mattered.
- No baseline: without a normal rate per endpoint, a real anomaly hides in scanner noise.
Framework mapping
| Framework | Reference | How alerts support it |
|---|---|---|
| NIST CSF 2.0 | PR.DS-02, DE.CM-01 | Alerts show data in transit protection failing and give a network monitoring signal |
| NIST SP 800-53 Rev. 5 | SC-8, SC-23, SC-13, AU-2, SI-4 | Transmission protection, session authenticity, cryptographic protection, logging and monitoring of handshake failures |
| CIS Controls v8.1 | 3.10 Encrypt Sensitive Data in Transit; 8.2 Collect Audit Logs | Encryption in transit, plus collecting the logs that carry alert codes |
| ISO/IEC 27001:2022 Annex A | 8.16 Monitoring activities; 8.20 Network security; 8.24 Use of cryptography | Monitoring, network protection and cryptographic controls |
| MITRE ATT&CK v20 | T1557 Adversary-in-the-Middle; T1040 Network Sniffing | Downgrade and interception attempts that alerts can surface |
Practitioner checklist
- Log TLS handshake failures with alert code, direction, peer, SNI and client certificate subject on every production endpoint.
- Map library-specific strings to IANA alert numbers in your log pipeline.
- Baseline alert rates per endpoint and alert on change, with tighter thresholds on internal mTLS traffic.
- Investigate every inappropriate_fallback and every unexplained unknown_ca spike.
- Treat certificate_expired and certificate_required on service traffic as machine identity findings with a named owner.
- Never clear certificate alerts by disabling verification; fix chains and trust stores.
- Confirm both sides' logs before changing configuration, and keep the previous certificate ready for rollback.
- Recheck the IANA registry when stacks upgrade to RFC 9846 behaviour, including general_error (117).
Standards and references
- IANA: Transport Layer Security (TLS) Parameters, TLS Alerts registry
- IETF: RFC 9846 The Transport Layer Security (TLS) Protocol Version 1.3
- IETF: RFC 8446 The Transport Layer Security (TLS) Protocol Version 1.3
- IETF: RFC 7507 TLS Fallback Signaling Cipher Suite Value (SCSV) for Preventing Protocol Downgrade Attacks
- IETF: RFC 9849 TLS Encrypted Client Hello
- Wireshark: Display Filter Reference, Transport Layer Security
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
Related NHI Mgmt Group resources: How TLS Works Guide · mTLS Guide · Expired Certificate Outage Troubleshooting Guide · x509 Certificate Signed by Unknown Authority Troubleshooting Guide