在WCF中使用证书身份验证时出错

时间:2011-05-22 16:38:50

标签: wcf wshttpbinding x509

我有点腌菜!

部署到我以前安装中没有看到的其中一个实时服务器时出现以下错误。该服务器位于我们生产环境中的硬件负载平衡器(BigIP)之后,据我所知,这是与以前部署的唯一区别。

  

无法启动模拟,因为带有“http://tempuri.org/ISomeService/GetStuff”操作的请求消息中的UltimateReceiver角色的SecurityContext未映射到Windows标识。

我们在经典模式应用程序池中运行Windows Server 2008 R2(IIS 7.5),WCF 4.0。

以下是我认为来自配置文件的相关摘要 - 可能存在一些错误,我更改了名称以保护内疚:

<service behaviorConfiguration="SomeServiceBehavior" name="SomeService">
    <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBindingCert" contract="ISomeService" />
</service>

<wsHttpBinding>
    <binding name="wsHttpBindingCert">
        <security mode="Transport">
            <transport clientCredentialType="Certificate" />
        </security>
    </binding>
</wsHttpBinding>

<behavior name="SomeServiceBehavior">
    <serviceMetadata httpsGetEnabled="false" />
    <serviceDebug includeExceptionDetailInFaults="false" />
    <serviceCredentials>
        <clientCertificate>
          <authentication certificateValidationMode="ChainTrust" mapClientCertificateToWindowsAccount="True"/>
        </clientCertificate>
        <serviceCertificate findValue="somecert.domain.com" x509FindType="FindBySubjectName" storeName="My" storeLocation="LocalMachine" />
    </serviceCredentials>
</behavior>

任何帮助都会非常感激。

0 个答案:

没有答案
相关问题