Schannel errors in Event Viewer: 36887, 36888, 36874 and 36871

The System log of almost every Windows server has red Schannel errors. Some are harmless, others explain why clients cannot connect. What matters is the event ID, the alert code, and which side closed the connection.

Schannel in one sentence

Schannel is the TLS library of Windows. IIS, Remote Desktop, Exchange, SQL Server, LDAPS, .NET and PowerShell build their encrypted connections on it. When a handshake fails, Schannel writes an event to the System log, source “Schannel”. The Schannel decoder shows what a message means.

36887 and 36888: direction matters

EventWho aborted?Where is the problem?
36887 “fatal alert received”the remote sideThe remote side dislikes something about this computer, such as its certificate or TLS version.
36888 “fatal alert generated”this computerThis computer dislikes something about the remote side.

The most important alert codes

36874 and 36871: protocols and cipher suites

36874 means a client offered no cipher suite this server allows. Typical after hardening with IIS Crypto or a Group Policy when old clients, scanners or Java 7 connect. 36871 with internal state 10013 means a program requests a disabled protocol. These are often .NET applications that still use TLS 1.0 on their own. These values fix it:

reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /v SchUseStrongCrypto /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319" /v SchUseStrongCrypto /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319" /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f

The SSL check shows which protocols and cipher suites a server offers from outside. The TLS configuration generator produces a secure baseline.

Overview: what is happening on the server?

Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Schannel'; StartTime=(Get-Date).AddDays(-1)} |
  Group-Object Id | Sort-Object Count -Descending | Format-Table Count, Name

Hundreds of 36888 messages with alert 10 and state 1203 in the rhythm of your monitoring are harmless and can be filtered out in monitoring. A few 36887 with alert 46 after a certificate change, on the other hand, deserve attention.

Find the remote side

Schannel does not log an IP address. Find the culprit with a capture. pktmon ships with Windows 10 and Server 2019:

pktmon filter add -p 443
pktmon start --capture --pkt-size 0
:: wait for the error
pktmon stop
pktmon etl2pcap PktMon.etl -o tls.pcapng

In Wireshark the filter tls.alert_message shows the connections with an alert, including IP addresses. On Linux the tcpdump filter helps. Schannel writes more detail with the registry value EventLogging = 7 under HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL; event 36880 then also logs successful handshakes with protocol and cipher suite.

FAQ

Can I ignore 36888 with alert 10?

Usually yes, if the internal state is 1203 and everything else works. Behind it are almost always port scanners, load balancer checks or monitoring that hit the port without TLS.

Why do the errors appear after a certificate change?

Usually the new chain lacks an intermediate, or the new root is unknown to the clients. The clients then abort with alert 46 or 48, and 36887 appears on the server.

How do I switch the messages off?

With EventLogging = 0 in the SCHANNEL key. But real warnings disappear too. Better filter harmless patterns in monitoring.

Sources and documentation