Workflow Tools Control Yard

Home / Logs

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:

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.

AlertNameWhat it meansSchannel error when received
0close_notifyThe sender will send nothing more on this connection. It closes the connection in an orderly way and is not an error alert.
10unexpected_messageA 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_MESSAGE
0x80090326
20bad_record_macA 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_ALTERED
0x8009030F
21decryption_failed_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.SEC_E_DECRYPT_FAILURE
0x80090330
22record_overflowA 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_MESSAGE
0x80090326
30decompression_failure_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.SEC_E_MESSAGE_ALTERED
0x8009030F
40handshake_failureThe sender could not agree on an acceptable set of security parameters from what the other side offered.SEC_E_ILLEGAL_MESSAGE
0x80090326
41no_certificate_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.
42bad_certificateA certificate was corrupt, or a signature in it did not verify.SEC_E_CERT_UNKNOWN
0x80090327
43unsupported_certificateA certificate was of a type the sender does not support.SEC_E_CERT_UNKNOWN
0x80090327
44certificate_revokedA certificate was revoked by its signer.CRYPT_E_REVOKED
0x80092010
45certificate_expiredA certificate has expired or is not yet valid.SEC_E_CERT_EXPIRED
0x80090328
46certificate_unknownSome other problem with a certificate made it unacceptable.SEC_E_CERT_UNKNOWN
0x80090327
47illegal_parameterA field in the handshake was wrong or did not agree with other fields, though the message itself was well formed.SEC_E_ILLEGAL_MESSAGE
0x80090326
48unknown_caA certificate chain arrived, but its certification authority could not be found or matched with a trusted root.SEC_E_UNTRUSTED_ROOT
0x80090325
49access_deniedA valid certificate or pre-shared key arrived, but access control told the sender not to go on.SEC_E_LOGON_DENIED
0x8009030C
50decode_errorA 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_MESSAGE
0x80090326
51decrypt_errorA cryptographic step of the handshake failed, such as checking a signature, a Finished message or a PSK binder.SEC_E_DECRYPT_FAILURE
0x80090330
60export_restriction_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.SEC_E_ILLEGAL_MESSAGE
0x80090326
70protocol_versionThe TLS version the other side tried to use is known to the sender but not supported by it.SEC_E_UNSUPPORTED_FUNCTION
0x80090302
71insufficient_securityThe server needs more secure parameters than the client supports. Sent in place of handshake_failure when that is the reason.SEC_E_ALGORITHM_MISMATCH
0x80090331
80internal_errorAn 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_ERROR
0x80090304
86inappropriate_fallbackA server sends it when a client retries a connection in a way it should not (RFC 7507).
90user_canceledThe sender is canceling the handshake for a reason that is not a protocol failure. A close_notify follows it.SEC_E_UNFINISHED_CONTEXT_DELETED
0x80090333
100no_renegotiation_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.SEC_E_ILLEGAL_MESSAGE
0x80090326
109missing_extensionA handshake message lacked an extension that is required for the TLS version or parameters offered.
110unsupported_extensionA handshake message carried an extension that was not first offered in the ClientHello or CertificateRequest.SEC_E_ILLEGAL_MESSAGE
0x80090326
111certificate_unobtainable_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.
112unrecognized_nameA server sends it when no server matches the name the client gave in the server_name extension.
113bad_certificate_status_responseA client sends it when the OCSP response that the server gave through the status_request extension is invalid or unacceptable.
114bad_certificate_hash_value_RESERVEDUsed by earlier versions of TLS. TLS 1.3 never sends it, but it can come from an older TLS implementation.
115unknown_psk_identityA 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_MESSAGE
0x80090326
116certificate_requiredA server sends it when it wants a client certificate and the client sent none.
117general_errorAn error for which no more specific alert exists, or whose exact cause the sender chose not to give.
120no_application_protocolA server sends it when the client's application_layer_protocol_negotiation extension lists only protocols the server does not support.SEC_E_ILLEGAL_MESSAGE
0x80090367

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_ILLEGAL_MESSAGE with the code 0x80090367, which the error code lookup names SEC_E_APPLICATION_PROTOCOL_MISMATCH.

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:

ValueWhat Schannel logs
0Do not log
1Log error messages
2Log warnings
3Log warnings and error messages
4Log informational and success events
5Log informational, success events and error messages
6Log informational, success events and warnings
7Log 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

More Logs tools