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
| Event | Who aborted? | Where is the problem? |
|---|---|---|
| 36887 “fatal alert received” | the remote side | The remote side dislikes something about this computer, such as its certificate or TLS version. |
| 36888 “fatal alert generated” | this computer | This computer dislikes something about the remote side. |
The most important alert codes
- 10 (unexpected_message) with state 1203: not TLS but port scanners, monitoring or HTTP on an HTTPS port. With 36888 almost always harmless.
- 40 (handshake_failure), with 36888 often with state 1205: no common TLS version or cipher suite.
- 46 (certificate_unknown) and 48 (unknown_ca): the certificate is not trusted. With 36887 the remote side rejects your server certificate; usually an intermediate is missing, or the root on the clients.
- 70 (protocol_version): the TLS version does not match, e.g. an old client with TLS 1.0 against a server that only allows TLS 1.2.
- 42 (bad_certificate) and 116 (certificate_required): problems with client certificates.
- 80 (internal_error): error on the aborting side. With 36888 look for 36870 (private key not accessible).
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.