SSL authentication fails and X.509 error occurs when a WCF-enabled application performs mutual authentication in Windows 7, in Windows Server 2008 R2, in Windows Vista, or in Windows Server 2008

Gjelder: Windows 7 EnterpriseWindows 7 Home BasicWindows 7 Home Premium

Symptoms


Consider the following scenario:
  • You have a computer that is running one of the following operating systems:
    • Windows Vista
    • Windows Server 2008
    • Windows 7
    • Windows Server 2008 R2
  • You have an application that enables Windows Communication Foundation (WCF) on the computer.
  • The application relies on a client certificate in the store of a user to authenticate with a server.
  • The application performs mutual authentication by using the client certificate.
In this scenario, the authentication causes an exception intermittently, and you receive an error message that resembles the following:
The X.509 certificate CN=<Host> chain building failed
Then, the application cannot authenticate with the server.

Note The client certificate is deleted from the store of the user when this issue occurs, and you have to reinstall the certificate for the application to work again.

Cause


This issue occurs because the root certificate is deleted by lsass.exe during SSL communication in a WCF application.

Resolution


Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem that is described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008 Service Pack 2 (SP2)
  • Windows 7
  • Windows 7 Service Pack 1 (SP1)
  • Windows Server 2008 R2
  • Windows Server 2008 R2 Service Pack 1 (SP1)
For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:

935791 How to obtain the latest Windows Vista service pack

For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

968849 How to obtain the latest service pack for Windows Server 2008

Registry information

You do not have to make any changes to the registry to use this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Vista and Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    VersionProductSR_LevelService branch
    6.0.600
    2.
    22xxx
    Windows Vista and Windows Server 2008SP2LDR
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Schannel.dll6.0.6002.22568275,45611-Jan-201115:58x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Schannel.dll6.0.6002.22568343,55211-Jan-201116:22x64
Schannel.dll6.0.6002.22568275,45611-Jan-201115:58x86
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Schannel.dll6.0.6002.22568800,25611-Jan-201115:39IA-64
Schannel.dll6.0.6002.22568275,45611-Jan-201115:58x86
Windows 7 and Windows Server 2008 R2 file information notes
Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows 7/Windows Server 2008 R2" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, milestone (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table:
    VersionProductMilestoneService branch
    6.1.760

    0.20xxx
    Windows 7 and Windows Server 2008 R2RTMLDR
    6.1.760

    1.21xxx
    Windows 7 and Windows Server 2008 R2SP1LDR
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are very important to maintaining the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
Schannel.dll6.1.7600.20861224,25618-Dec-201005:30x86
Schannel.dll6.1.7601.21624224,25618-Dec-201007:57x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Schannel.dll6.1.7600.20861339,45618-Dec-201006:09x64
Schannel.dll6.1.7601.21624340,99218-Dec-201008:51x64
Schannel.dll6.1.7600.20861224,25618-Dec-201005:30x86
Schannel.dll6.1.7601.21624224,25618-Dec-201007:57x86
For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Schannel.dll6.1.7600.20861645,12018-Dec-201005:19IA-64
Schannel.dll6.1.7601.21624645,12018-Dec-201009:35IA-64
Schannel.dll6.1.7600.20861224,25618-Dec-201005:30x86
Schannel.dll6.1.7601.21624224,25618-Dec-201007:57x86

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information


For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684

Description of the standard terminology that is used to describe Microsoft software updates

For more information about Windows Communication Foundation (WCF), visit the following Microsoft webpage:

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x86-based versions of Windows Vista and of Windows Server 2008
File nameUpdate.mum
File versionNot applicable
File size3,078
Date (UTC)11-Jan-2011
Time (UTC)21:12
PlatformNot applicable
File nameX86_c36fd101e44036c25029663ad087ed9f_31bf3856ad364e35_6.0.6002.22568_none_01621f48d6b3bfaa.manifest
File versionNot applicable
File size705
Date (UTC)11-Jan-2011
Time (UTC)21:12
PlatformNot applicable
File nameX86_microsoft-windows-security-schannel_31bf3856ad364e35_6.0.6002.22568_none_244d89d36bb02a1e.manifest
File versionNot applicable
File size18,090
Date (UTC)11-Jan-2011
Time (UTC)16:13
PlatformNot applicable
Additional files for all supported x64-based versions of Windows Vista and of Windows Server 2008
File nameAmd64_c7a934a3f337c5a5a3c4407c7ea6f23f_31bf3856ad364e35_6.0.6002.22568_none_3b9fcfe3eb1e07b3.manifest
File versionNot applicable
File size1,060
Date (UTC)11-Jan-2011
Time (UTC)21:12
PlatformNot applicable
File nameAmd64_microsoft-windows-security-schannel_31bf3856ad364e35_6.0.6002.22568_none_806c2557240d9b54.manifest
File versionNot applicable
File size18,120
Date (UTC)11-Jan-2011
Time (UTC)16:35
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size3,102
Date (UTC)11-Jan-2011
Time (UTC)21:12
PlatformNot applicable
File nameWow64_microsoft-windows-security-schannel_31bf3856ad364e35_6.0.6002.22568_none_8ac0cfa9586e5d4f.manifest
File versionNot applicable
File size17,557
Date (UTC)11-Jan-2011
Time (UTC)16:02
PlatformNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008
File nameIa64_5b60d2d6e3f486a67cce551e7dd5c6af_31bf3856ad364e35_6.0.6002.22568_none_0afef2a568fb10d4.manifest
File versionNot applicable
File size1,058
Date (UTC)11-Jan-2011
Time (UTC)21:12
PlatformNot applicable
File nameIa64_microsoft-windows-security-schannel_31bf3856ad364e35_6.0.6002.22568_none_244f2dc96bae331a.manifest
File versionNot applicable
File size18,105
Date (UTC)11-Jan-2011
Time (UTC)15:50
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size2,255
Date (UTC)11-Jan-2011
Time (UTC)21:12
PlatformNot applicable
File nameWow64_microsoft-windows-security-schannel_31bf3856ad364e35_6.0.6002.22568_none_8ac0cfa9586e5d4f.manifest
File versionNot applicable
File size17,557
Date (UTC)11-Jan-2011
Time (UTC)16:02
PlatformNot applicable

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7
File nameUpdate.mum
File versionNot applicable
File size2,773
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameX86_7177985e1a00a0d94bbc8538c0e7b860_31bf3856ad364e35_6.1.7601.21624_none_0b928e26d5d333c6.manifest
File versionNot applicable
File size705
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameX86_ad4456608ff1ba245c89eb4a0a076ebb_31bf3856ad364e35_6.1.7600.20861_none_ff3be6a30ef14c86.manifest
File versionNot applicable
File size705
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameX86_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7600.20861_none_2287e444cfa7635a.manifest
File versionNot applicable
File size12,919
Date (UTC)18-Dec-2010
Time (UTC)05:59
PlatformNot applicable
File nameX86_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7601.21624_none_249c81d8ccaaab87.manifest
File versionNot applicable
File size12,919
Date (UTC)18-Dec-2010
Time (UTC)08:33
PlatformNot applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameAmd64_2c974159d691e2f2f950eb62ba459376_31bf3856ad364e35_6.1.7601.21624_none_1ad712556780e16c.manifest
File versionNot applicable
File size709
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_4032f8f471821265d6de647a4f4532f6_31bf3856ad364e35_6.1.7600.20861_none_59e440ee1352aff4.manifest
File versionNot applicable
File size709
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_8312bfa35e3020d3c4f092d2f33050a6_31bf3856ad364e35_6.1.7600.20861_none_60f3d3bf962495fe.manifest
File versionNot applicable
File size709
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_b347fab83544d6e784e0aba2413a9b9c_31bf3856ad364e35_6.1.7601.21624_none_5bfdfd0f8e72e819.manifest
File versionNot applicable
File size1,060
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_d97e71c139c58eeff88aaa1036979816_31bf3856ad364e35_6.1.7600.20861_none_8389137c8f9a064c.manifest
File versionNot applicable
File size1,060
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_f6984a49ac75372f04a09b81fa098219_31bf3856ad364e35_6.1.7601.21624_none_ee4ed5469f0247c7.manifest
File versionNot applicable
File size709
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7600.20861_none_7ea67fc88804d490.manifest
File versionNot applicable
File size12,921
Date (UTC)18-Dec-2010
Time (UTC)06:53
PlatformNot applicable
File nameAmd64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7601.21624_none_80bb1d5c85081cbd.manifest
File versionNot applicable
File size12,921
Date (UTC)18-Dec-2010
Time (UTC)09:26
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size4,059
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameWow64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7600.20861_none_88fb2a1abc65968b.manifest
File versionNot applicable
File size6,945
Date (UTC)18-Dec-2010
Time (UTC)05:50
PlatformNot applicable
File nameWow64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7601.21624_none_8b0fc7aeb968deb8.manifest
File versionNot applicable
File size6,945
Date (UTC)18-Dec-2010
Time (UTC)08:23
PlatformNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
File nameIa64_2bf29287825205fbbb1c09552fec48e8_31bf3856ad364e35_6.1.7600.20861_none_73e95e565c10c4b2.manifest
File versionNot applicable
File size707
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameIa64_4032f8f471821265d6de647a4f4532f6_31bf3856ad364e35_6.1.7600.20861_none_fdc749605af347ba.manifest
File versionNot applicable
File size708
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameIa64_4519a494fe0b9dd97753e3fde607c9dc_31bf3856ad364e35_6.1.7601.21624_none_c549f5804bb2e224.manifest
File versionNot applicable
File size707
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameIa64_f6984a49ac75372f04a09b81fa098219_31bf3856ad364e35_6.1.7601.21624_none_9231ddb8e6a2df8d.manifest
File versionNot applicable
File size708
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameIa64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7600.20861_none_2289883acfa56c56.manifest
File versionNot applicable
File size12,920
Date (UTC)18-Dec-2010
Time (UTC)06:52
PlatformNot applicable
File nameIa64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7601.21624_none_249e25cecca8b483.manifest
File versionNot applicable
File size12,920
Date (UTC)18-Dec-2010
Time (UTC)09:58
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size2,169
Date (UTC)20-Dec-2010
Time (UTC)20:11
PlatformNot applicable
File nameWow64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7600.20861_none_88fb2a1abc65968b.manifest
File versionNot applicable
File size6,945
Date (UTC)18-Dec-2010
Time (UTC)05:50
PlatformNot applicable
File nameWow64_microsoft-windows-security-schannel_31bf3856ad364e35_6.1.7601.21624_none_8b0fc7aeb968deb8.manifest
File versionNot applicable
File size6,945
Date (UTC)18-Dec-2010
Time (UTC)08:23
PlatformNot applicable