%3CLINGO-SUB%20id%3D%22lingo-sub-722663%22%20slang%3D%22en-US%22%3ESChannel%20error%20state%20960%20(TLS%20fatal%20error%20code%2020)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722663%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20your%20web%20server%20fails%20to%20establish%20secure%20communication%2C%20your%20users%20will%20see%20certification.%20In%20the%20meantime%2C%20you%20may%20see%20%E2%80%9CSChannel%20error%20state%20is%20960%E2%80%9D%20message%20in%20Event%20Viewer.%20Here%20is%20the%20full%20error%20message%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EA%20fatal%20alert%20was%20generated%20and%20sent%20to%20the%20remote%20endpoint.%20This%20may%20result%20in%20termination%20of%20the%20connection.%20The%20TLS%20protocol%20defined%20fatal%20error%20code%20is%2020.%20The%20Windows%20SChannel%20error%20state%20is%20960.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CH2%20id%3D%22toc-hId-1789639546%22%20id%3D%22toc-hId-1789639546%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--762517415%22%20id%3D%22toc-hId--762517415%22%3ECause%3C%2FH2%3E%0A%3CP%3EThe%20root%20cause%20of%20this%20issue%20is%20that%20the%20different%20or%20incompatible%20chiper%20suites%20used%20in%20web%20server%20and%20load%20balancer.%20Cipher%20suites%20(chiper%20blocks)%20are%20encryption%20methods%20(RSA%2C%20DHE%20etc.).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20there%20is%20a%20conflict%20or%20mismatch%20in%20the%20chiper%20suites%2C%20web%20server%20cannot%20decrypt%20the%20encrypted%20request%20logs%20this%20error%20message%3A%20%E2%80%9CThe%20TLS%20protocol%20defined%20fatal%20error%20code%20is%2020.%20The%20Windows%20SChannel%20error%20state%20is%20960.%E2%80%9D%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-980292920%22%20id%3D%22toc-hId-980292920%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1571864041%22%20id%3D%22toc-hId--1571864041%22%3EHow%20to%20solve%20%E2%80%9CSChannel%20error%20state%20is%20960%E2%80%9D%3C%2FH2%3E%0A%3CP%3EYou%20can%20fix%20secure%20connection%20failures%20and%20Schannel%20by%20enabling%20custom%20chiper%20suite%20and%20editing%20the%20list%20of%20chiper%20suites%20in%20your%20web%20server.%20Here%20are%20steps%20to%20edit%20chiper%20suites%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ELog%20onto%20the%20server%20using%20an%20account%20that%20is%20in%20the%20Local%20Administrators%20group%3C%2FLI%3E%0A%3CLI%3EGo%20to%20%E2%80%9C%3CSTRONG%3EStart%20%26gt%3B%20Run%3C%2FSTRONG%3E%E2%80%9C.%20Enter%3A%26nbsp%3Bgpedit.msc%3C%2FLI%3E%0A%3CLI%3EExpand%20%E2%80%9C%3CSTRONG%3EComputer%20Configuration%20%26gt%3B%20Administrative%20Templates%20%26gt%3B%20Network%20%26gt%3B%20SSL%20Configuration%20Settings%3C%2FSTRONG%3E%E2%80%9C%3C%2FLI%3E%0A%3CLI%3EIn%20the%20right%20pane%2C%20right%20click%20on%20%E2%80%9C%3CSTRONG%3ESSL%20Cipher%20Suite%20Order%3C%2FSTRONG%3E%E2%80%9D%20and%20choose%20%E2%80%9CEdit%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EClick%20%E2%80%9CEnabled%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ECopy%20the%20content%20of%20%E2%80%9C%3CSTRONG%3ESSL%20Cipher%20Suites%3C%2FSTRONG%3E%E2%80%9D%20text%20box%20and%20paste%20it%20notepad%3C%2FLI%3E%0A%3CLI%3EMake%20sure%20that%20this%20list%20matches%20the%20chipper%20suite%20list%20used%20in%20your%20load%20balancer.%20General%20recommendation%3A%3C%2FLI%3E%0A%3CUL%3E%0A%3CLI%3EMove%20TLS_RSA%20chiper%20suites%20to%20the%20top%3C%2FLI%3E%0A%3CLI%3ECopy%20TLS_ECDHE%20ones%20after%20them%3C%2FLI%3E%0A%3CLI%3ERemove%20these%20two%20chiper%20suites%20as%20they%20have%20known%20interoperability%20issues%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FOL%3E%0A%3CPRE%3ETLS_DHE_RSA_WITH_AES_128_CBC_SHA%0ATLS_DHE_RSA_WITH_AES_256_CBC_SHA%3C%2FPRE%3E%0A%3COL%3E%0A%3CUL%3E%0A%3CLI%3EIn%20the%20%E2%80%9C%3CSTRONG%3ESSL%20Cipher%20Suite%20Order%3C%2FSTRONG%3E%E2%80%9D%20window%2C%20click%20%E2%80%9COK%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EReboot%20the%20server%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20648px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120762i94913363EB092077%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22local.png%22%20title%3D%22local.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%26nbsp%3B%3C%2FSTRONG%3EThe%20list%20you%20provide%20in%20the%20Step%207%20cannot%20exceed%201023%20characters.%20In%20order%20to%20reduce%20it%2C%20make%20sure%20to%20give%20priority%20to%20the%20ones%20at%20top%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fsecauthn%2Fcipher-suites-in-schannel%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethe%20default%20cipher%20list%3C%2FA%3E.%20This%20list%20is%20ordered%20from%20strongest%20chipper%20suites%20to%20the%20weakest%20ones.%20Additionally%2C%20you%20can%20remove%20the%20suites%20that%20are%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc7540%23appendix-A%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethe%20black%20list%20for%20HTTP%2F2%3C%2FA%3E.%20Here%20is%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4032720%2Fhow-to-deploy-custom-cipher-suite-ordering-in-windows-server-2016%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emore%20information%3C%2FA%3E%26nbsp%3Babout%20HTTP%2F2%20black%20list.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--25567211%22%20id%3D%22toc-hId--25567211%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-1717243124%22%20id%3D%22toc-hId-1717243124%22%3EIf%20the%20error%20still%20occurs%3C%2FH3%3E%0A%3CP%3EA%20less%20likely%20cause%20of%20this%20issue%20is%20that%20a%20change%20in%20MAC%20(Message%20Authentication%20Code)%20(%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fie%2Fen-US%2Fcf6f5aeb-2a4e-4507-a3a8-cb7f33ad8fc7%2Fschannel-help-with-error-20-event-id-36888%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESource%3C%2FA%3E).%20Web%20servers%20use%20this%20code%20to%20determine%20that%20the%20request%20hasn%E2%80%99t%20changed%20on%20the%20way%20(request%20forgery%20or%20man-in-the-middle%20attack).%20If%20the%20web%20server%20finds%20out%20that%20the%20MAC%20has%20changed%2C%20it%20drops%20the%20connection.%20In%20order%20to%20solve%20it%2C%20make%20sure%20that%20your%20load%20balancer%20doesn%E2%80%99t%20make%20any%20changes%20to%20the%20MAC%20value.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20possible%20cause%20is%20a%20Windows%20update%20(KB4457129)%20that%20reportedly%20breaks%20NLB%20(Network%20Load%20Balancer)%20Cluster.%20Uninstalling%20this%20update%20or%20installing%20the%20patch%20(%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4457133%2Fwindows-81-update-kb4457133%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EKB4457133%3C%2FA%3E)%20solves%20the%20issue%20(%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fen-US%2F35a83911-9870-432d-aabe-7b31b8f968f4%2Fkb4457129-breaks-msnlb-used-by-vms%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESource%3C%2FA%3E).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-722663%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20your%20web%20server%20fails%20to%20establish%20secure%20communication%2C%20your%20users%20will%20see%20certification.%20In%20the%20meantime%2C%20you%20may%20see%20%E2%80%9CSChannel%20error%20state%20is%20960%E2%80%9D%20message%20in%20Event%20Viewer.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-722663%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Echiper%20suites%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eschannel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

If your web server fails to establish secure communication, your users will see certification. In the meantime, you may see “SChannel error state is 960” message in Event Viewer. Here is the full error message:

 

A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 20. The Windows SChannel error state is 960.

 

Cause

The root cause of this issue is that the different or incompatible chiper suites used in web server and load balancer. Cipher suites (chiper blocks) are encryption methods (RSA, DHE etc.).

 

If there is a conflict or mismatch in the chiper suites, web server cannot decrypt the encrypted request logs this error message: “The TLS protocol defined fatal error code is 20. The Windows SChannel error state is 960.”

 

How to solve “SChannel error state is 960”

You can fix secure connection failures and Schannel by enabling custom chiper suite and editing the list of chiper suites in your web server. Here are steps to edit chiper suites:

  1. Log onto the server using an account that is in the Local Administrators group
  2. Go to “Start > Run“. Enter: gpedit.msc
  3. Expand “Computer Configuration > Administrative Templates > Network > SSL Configuration Settings
  4. In the right pane, right click on “SSL Cipher Suite Order” and choose “Edit”
  5. Click “Enabled”
  6. Copy the content of “SSL Cipher Suites” text box and paste it notepad
  7. Make sure that this list matches the chipper suite list used in your load balancer. General recommendation:
    • Move TLS_RSA chiper suites to the top
    • Copy TLS_ECDHE ones after them
    • Remove these two chiper suites as they have known interoperability issues:
TLS_DHE_RSA_WITH_AES_128_CBC_SHA
TLS_DHE_RSA_WITH_AES_256_CBC_SHA
    • In the “SSL Cipher Suite Order” window, click “OK”
    • Reboot the server

local.png

 

Note: The list you provide in the Step 7 cannot exceed 1023 characters. In order to reduce it, make sure to give priority to the ones at top in the default cipher list. This list is ordered from strongest chipper suites to the weakest ones. Additionally, you can remove the suites that are in the black list for HTTP/2. Here is more information about HTTP/2 black list.

 

If the error still occurs

A less likely cause of this issue is that a change in MAC (Message Authentication Code) (Source). Web servers use this code to determine that the request hasn’t changed on the way (request forgery or man-in-the-middle attack). If the web server finds out that the MAC has changed, it drops the connection. In order to solve it, make sure that your load balancer doesn’t make any changes to the MAC value.

 

Another possible cause is a Windows update (KB4457129) that reportedly breaks NLB (Network Load Balancer) Cluster. Uninstalling this update or installing the patch (KB4457133) solves the issue (Source).