Schannel and TLS alert code lookup
Paste a Schannel event 36887 or 36888 from the System log, or type the alert number in it, such as 46 or 70. The page names the TLS alert, says what it means and which end of the connection sent it, and gives the error code that Schannel returns when it receives that alert. It reads the text in your browser.
The two events
Schannel, the TLS library of Windows, logs these events in the System log:
- 36887: the other end of the connection sent this computer a fatal alert. Microsoft's pages show its text in two forms:
A fatal alert was received from the remote endpoint. The TLS protocol defined fatal alert code is 20.andThe following fatal alert was received: 47. - 36888: this computer found an error and sent the other end a fatal alert. A Microsoft page shows its text as
The following fatal alert was generated: 20. The internal error state is 960. The page shows the error state but does not decode it.
The alert number is the same on both sides: it is the code that TLS sends. With 36887 the reason is on the other end; with 36888 this computer found it. A received alert also reaches the program that made the connection as one of Schannel's error codes, in the last column below.
Alerts
The 35 alerts that RFC 9846 (TLS 1.3, July 2026) lists, with the ones earlier versions of TLS used. Every error alert is fatal: whoever sends or receives one closes the connection. The error codes are those of Microsoft's table of Schannel error codes for TLS alerts; for any alert not in it, Schannel returns SEC_E_ILLEGAL_MESSAGE 0x80090326.
| Alert | Name | What it means | Schannel error when received |
|---|---|---|---|
| 0 | close_ | The sender will send nothing more on this connection. It closes the connection in an orderly way and is not an error alert. | |
| 10 | unexpected_ | A message arrived that does not belong at this point, such as the wrong handshake message or application data too early. Between correct implementations it should never happen. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 20 | bad_ | A record could not be decrypted and verified. TLS uses this one alert for every such failure. Between correct implementations it should only happen when data was damaged on the way. | SEC_E_MESSAGE_ALTERED0x8009030F |
| 21 | decryption_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | SEC_E_DECRYPT_FAILURE0x80090330 |
| 22 | record_ | A record was longer than TLS allows: over 2^14 + 256 bytes as received, or over 2^14 bytes once decrypted, or over a smaller limit the two sides agreed on. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 30 | decompression_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | SEC_E_MESSAGE_ALTERED0x8009030F |
| 40 | handshake_ | The sender could not agree on an acceptable set of security parameters from what the other side offered. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 41 | no_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | |
| 42 | bad_ | A certificate was corrupt, or a signature in it did not verify. | SEC_E_CERT_UNKNOWN0x80090327 |
| 43 | unsupported_ | A certificate was of a type the sender does not support. | SEC_E_CERT_UNKNOWN0x80090327 |
| 44 | certificate_ | A certificate was revoked by its signer. | CRYPT_E_REVOKED0x80092010 |
| 45 | certificate_ | A certificate has expired or is not yet valid. | SEC_E_CERT_EXPIRED0x80090328 |
| 46 | certificate_ | Some other problem with a certificate made it unacceptable. | SEC_E_CERT_UNKNOWN0x80090327 |
| 47 | illegal_ | A field in the handshake was wrong or did not agree with other fields, though the message itself was well formed. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 48 | unknown_ | A certificate chain arrived, but its certification authority could not be found or matched with a trusted root. | SEC_E_UNTRUSTED_ROOT0x80090325 |
| 49 | access_ | A valid certificate or pre-shared key arrived, but access control told the sender not to go on. | SEC_E_LOGON_DENIED0x8009030C |
| 50 | decode_ | A message could not be decoded: a field was out of range or a length was wrong. Between correct implementations it should only happen when data was damaged on the way. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 51 | decrypt_ | A cryptographic step of the handshake failed, such as checking a signature, a Finished message or a PSK binder. | SEC_E_DECRYPT_FAILURE0x80090330 |
| 60 | export_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 70 | protocol_ | The TLS version the other side tried to use is known to the sender but not supported by it. | SEC_E_UNSUPPORTED_FUNCTION0x80090302 |
| 71 | insufficient_ | The server needs more secure parameters than the client supports. Sent in place of handshake_failure when that is the reason. | SEC_E_ALGORITHM_MISMATCH0x80090331 |
| 80 | internal_ | An error of the sender's own, not caused by the other side or by the protocol, such as running out of memory, stopped the connection. | SEC_E_INTERNAL_ERROR0x80090304 |
| 86 | inappropriate_ | A server sends it when a client retries a connection in a way it should not (RFC 7507). | |
| 90 | user_ | The sender is canceling the handshake for a reason that is not a protocol failure. A close_notify follows it. | SEC_E_UNFINISHED_CONTEXT_DELETED0x80090333 |
| 100 | no_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 109 | missing_ | A handshake message lacked an extension that is required for the TLS version or parameters offered. | |
| 110 | unsupported_ | A handshake message carried an extension that was not first offered in the ClientHello or CertificateRequest. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 111 | certificate_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | |
| 112 | unrecognized_ | A server sends it when no server matches the name the client gave in the server_name extension. | |
| 113 | bad_ | A client sends it when the OCSP response that the server gave through the status_request extension is invalid or unacceptable. | |
| 114 | bad_ | Used by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation. | |
| 115 | unknown_ | A server sends it when it wants a pre-shared key but the client offered no acceptable PSK identity. A server may send decrypt_error instead. | SEC_E_ILLEGAL_MESSAGE0x80090326 |
| 116 | certificate_ | A server sends it when it wants a client certificate and the client sent none. | |
| 117 | general_ | An error for which no more specific alert exists, or whose exact cause the sender chose not to give. | |
| 120 | no_ | A server sends it when the client's application_layer_protocol_negotiation extension lists only protocols the server does not support. | SEC_E_ILLEGAL_MESSAGE0x80090367 |
Two things in Microsoft's table as it stands: it gives no number for SSL3_ALERT_ILLEGAL_PARAMETER, which this page puts at 47, the number of illegal_parameter; and for alert 120 it pairs the name SEC_E_ with the code 0x80090367, which the error code lookup names SEC_E_.
More Schannel events
By default Schannel logs only its errors. The registry value EventLogging (REG_DWORD) under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL sets what it logs, and Microsoft's article says the change takes effect after a restart:
| Value | What Schannel logs |
|---|---|
| 0 | Do not log |
| 1 | Log error messages |
| 2 | Log warnings |
| 3 | Log warnings and error messages |
| 4 | Log informational and success events |
| 5 | Log informational, success events and error messages |
| 6 | Log informational, success events and warnings |
| 7 | Log informational, success events, warnings, and error messages (all log levels) |
To log everything, then go back to errors only:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" /v EventLogging /t REG_DWORD /d 7 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL" /v EventLogging /t REG_DWORD /d 1 /f
Sources
- Alert numbers, names and meanings: RFC 9846, The Transport Layer Security (TLS) Protocol Version 1.3, sections 6.1 and 6.2 and appendix B.2, read in the TLS working group's source of the RFC (tlswg tls13-spec at commit c728b4e). The meanings are written here in plain words.
- Schannel error codes: Microsoft's Schannel Error Codes for TLS and SSL Alerts (win32 documentation at commit bc82a65).
- The events: Microsoft support article 4528489 for the text of 36887, a Microsoft support engineer's blog post of 11 November 2016 for the text of 36888, and Microsoft's IIS support blog for the older text of 36887.
- Logging levels: Microsoft's articles Enable Schannel event logging in Windows and Windows Server (SupportArticles-docs at commit 667f0bf) and TLS registry settings (windowsserverdocs at commit b640f2c); the command uses reg add as Microsoft's command reference gives it.
- Microsoft's documentation is used under the Creative Commons Attribution 4.0 International licence (creativecommons.org/
licenses/ by/ 4.0/). The names and texts in the tables are Microsoft's; the meanings around them are written here in plain words.
More Logs tools
-
Access log checker
Find the exploit requests in a web server log and the addresses that sent them.
-
Windows security event ID lookup
Look up 4740, 4625, 4728, 1102 or any other Security log event: its meaning, audit setting and criticality.
-
Event log query builder
Pick a log, event IDs, levels and a time span: the XPath, the custom view XML and the Get-WinEvent command.
-
auditpol command builder
Choose what each audit subcategory logs, or start from Microsoft's baseline: the auditpol commands, with GUIDs.
-
Sysmon event ID lookup
Every Sysmon event ID with its filter tag and fields, and a reader for an event pasted from Event Viewer.
-
Windows Firewall log reader
Open pfirewall.log: its lines as a table, the drops by port and address, and the commands that turn logging on.
-
IIS status codes and log line reader
Look up 500.19, 403.14 or any other IIS status and substatus, or read W3C log lines field by field.
-
Syslog PRI calculator
Read the facility and severity in a syslog priority such as <134>, or build one from local0 to local7.
-
Timestamp converter
Unix seconds and milliseconds, FILETIME, Chrome, Apple, Excel and MS-DOS dates to a date, and back.
-
Scanner watch
What attack tools ask of this site's web server: the addresses, the paths and the networks, rebuilt each day.