Join our Newsletter — 33% off our NHI Course
Home› Guides› TLS Alert Codes Reference: What Each Alert Means…
Guide Network Security

TLS Alert Codes Reference: What Each Alert Means for Security

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 15 min read
On this page

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.

CodeNameMeaning (spec)Typical cause in practice
0close_notifySender will send no more messagesNormal shutdown; its absence before TCP close can signal truncation
10unexpected_messageInappropriate message receivedImplementation bug, middlebox interference, protocol confusion (for example plain HTTP to a TLS port)
20bad_record_macA record could not be deprotectedCorruption or tampering in transit, broken offload hardware, key mismatch after a faulty resumption
21decryption_failed_RESERVEDHistorical (pre TLS 1.1)Should never appear; seeing it means very old software
22record_overflowRecord exceeds the length limitBugs, oversized records from misconfigured max fragment length
30decompression_failure_RESERVEDHistorical (compression removed)Legacy stacks only
40handshake_failureNo acceptable set of security parametersNo shared cipher suite, group or signature algorithm; often a hardened server meeting a legacy client
41no_certificate_RESERVEDHistorical (SSL 3.0)Legacy only
42bad_certificateCertificate corrupt or signature does not verifyMalformed certificate, wrong key pair, broken chain order
43unsupported_certificateCertificate of an unsupported typeKey type or algorithm the peer does not accept
44certificate_revokedCertificate revoked by its signerRevoked leaf or intermediate found via OCSP or CRL
45certificate_expiredCertificate expired or not currently validExpired leaf or intermediate, or wrong system clock on either side
46certificate_unknownUnspecified problem makes the certificate unacceptableHostname mismatch, key usage or EKU problems, catch-all in some libraries
47illegal_parameterField incorrect or inconsistent, though syntactically validImplementation bugs, middleboxes rewriting handshakes
48unknown_caCA not found or not matched to a trust anchorMissing intermediate, private CA not in the trust store, TLS inspection proxy CA not trusted
49access_deniedValid certificate or PSK, but access control refusedmTLS identity not authorised for that endpoint
50decode_errorMessage does not follow the formal syntaxTruncated or malformed messages, fuzzing, scanners
51decrypt_errorHandshake cryptographic operation failed (signature, Finished, PSK binder)Wrong private key, tampered handshake, PSK mismatch
52too_many_cids_requestedDTLS 1.3 connection ID limit exceeded (RFC 9147)DTLS peers requesting more connection IDs than allowed
60export_restriction_RESERVEDHistorical (export ciphers)Legacy only
70protocol_versionPeer's version recognised but not supportedClient offers only TLS 1.0 or 1.1 to a server that allows 1.2 and 1.3 only
71insufficient_securityServer needs stronger parameters than the client offersClient cipher list below server policy
80internal_errorLocal error unrelated to the peerMemory failure, HSM or key store unavailable, crashing module
86inappropriate_fallbackClient retried with a lower version than the server supports (RFC 7507)Broken client fallback logic, or a downgrade attempt
90user_canceledHandshake cancelled for a non-protocol reasonUser or application abort
100no_renegotiation_RESERVEDHistorical (renegotiation removed in TLS 1.3)TLS 1.2 peers refusing renegotiation
109missing_extensionMandatory extension absentClient lacking supported_versions, key_share or signature_algorithms
110unsupported_extensionExtension not first offered in ClientHello or CertificateRequestServer or middlebox bug
111certificate_unobtainable_RESERVEDHistorical (RFC 6066 client certificate URLs)Legacy only
112unrecognized_nameNo server matches the SNI name (RFC 6066)Wrong hostname, missing virtual host, SNI routing gap on a load balancer
113bad_certificate_status_responseInvalid or unacceptable OCSP responseStale or badly signed stapled OCSP response
114bad_certificate_hash_value_RESERVEDHistorical (RFC 6066)Legacy only
115unknown_psk_identityNo acceptable PSK identity (RFC 4279)PSK not provisioned or rotated on one side only; servers may send decrypt_error instead
116certificate_requiredServer wants a client certificate but none was sentmTLS client not configured with its certificate, or wrong certificate selected
117general_errorNo more specific error applies, or sender conceals the specific errorNew in RFC 9846; expect it from stacks that hide failure detail
120no_application_protocolNo ALPN protocol in common (RFC 7301)Client offers only h2 or a custom protocol the server does not support
121ech_requiredSent 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.

PatternBenign explanationSecurity readingWhat to check
inappropriate_fallback (86)Old client with naive retry logicAttempted 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) burstsFaulty NIC offload, buggy load balancerTampering with records or handshakes in transitHardware changes, path changes, other alerts from the same peers
Sudden rise in unknown_ca (48) from clientsMissing intermediate after a renewalA new interception device presenting its own CAWhich certificate clients actually received; compare issuer with the expected chain
access_denied (49), certificate_required (116) on internal APIsService rolled out without its client certificateA workload or attacker probing services it is not entitled toSource workload identity, whether the caller should exist at all
certificate_expired (45) on service-to-service trafficRenewal automation failedUnmanaged machine identity outside the inventoryOwner of the certificate, issuing CA, renewal pipeline
protocol_version (70), handshake_failure (40) from many sourcesLegacy clients after hardeningScanners enumerating supported versions and ciphersSource reputation, scan timing, matching JA3 or JA4 fingerprints
certificate_revoked (44)Planned revocation not yet replacedA compromised key still in use somewhereWhy 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

AspectTLS 1.2 (RFC 5246, now obsoleted)TLS 1.3 (RFC 8446, now RFC 9846)
Alert levelLevel decides behaviour; some alerts could be warningsSeverity implicit in the type; level can be ignored; all error alerts must be sent as fatal
Visibility on the wireHandshake alerts usually sent in clear before ChangeCipherSpecEncrypted from the server's handshake messages onward
Renegotiationno_renegotiation used as a warningRenegotiation removed; value 100 reserved
New alertsNone of the belowmissing_extension (109), certificate_required (116); RFC 9846 adds general_error (117)
ClosingPeer answered close_notify with its ownEach side sends close_notify before closing its write side; no reply required
Downgrade defenceTLS_FALLBACK_SCSV (0x56, 0x00) with inappropriate_fallbackBuilt-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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Capture when needed: for TLS 1.2 or pre-encryption alerts, the Wireshark display filter tls.record.content_type == 21 isolates alert records, and tls.alert_message.desc holds the code. For TLS 1.3, capture with session keys exported from a test client in a controlled environment, never from production user traffic.
  6. Fix and verify: change one thing (chain, trust store, cipher policy, SNI mapping), retest, and watch the alert rate for that code fall.
  7. 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

MetricWhy it mattersTarget direction
Handshake failure rate per endpoint, by alert codeCore health signalLow and stable; explained spikes only
certificate_expired alerts on internal trafficShows renewal automation gapsZero
Mean time from first alert spike to root causeTests whether teams can read alertsFalling
Share of endpoints logging alert codes centrallyCoverage of the signal itselfRising to all production TLS endpoints
inappropriate_fallback and unknown_ca anomalies investigatedSecurity follow-throughAll 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

FrameworkReferenceHow alerts support it
NIST CSF 2.0PR.DS-02, DE.CM-01Alerts show data in transit protection failing and give a network monitoring signal
NIST SP 800-53 Rev. 5SC-8, SC-23, SC-13, AU-2, SI-4Transmission protection, session authenticity, cryptographic protection, logging and monitoring of handshake failures
CIS Controls v8.13.10 Encrypt Sensitive Data in Transit; 8.2 Collect Audit LogsEncryption in transit, plus collecting the logs that carry alert codes
ISO/IEC 27001:2022 Annex A8.16 Monitoring activities; 8.20 Network security; 8.24 Use of cryptographyMonitoring, network protection and cryptographic controls
MITRE ATT&CK v20T1557 Adversary-in-the-Middle; T1040 Network SniffingDowngrade 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

Related NHI Mgmt Group resources: How TLS Works Guide · mTLS Guide · Expired Certificate Outage Troubleshooting Guide · x509 Certificate Signed by Unknown Authority Troubleshooting Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.