简体   繁体   English

WCF客户端证书身份验证,服务“ SslRequireCert”的SSL设置与IIS“ Ssl,SslNegotiateCert”的SSL设置不匹配

[英]WCF Client Certificate Authentication, The SSL settings for the service 'SslRequireCert' does not match those of the IIS 'Ssl, SslNegotiateCert'

I have a website that is going to be called from some clients which will be authenticating with client certificates and others which will not be, because of this i have to have iis settings for client certificate set to allow. 我有一个将要从某些客户端调用的网站,该客户端将使用客户端证书进行身份验证,而其他客户端将不会,因此,我必须将客户端证书的iis设置设置为允许。 This works fine on a windows 7 professional however when i try to run this on a virtual server setup with windows 7 i get the following error 这在Windows 7 Professional上工作正常,但是当我尝试在Windows 7虚拟服务器安装程序上运行此程序时,出现以下错误

The SSL settings for the service 'SslRequireCert' does not match those of the IIS 'Ssl, SslNegotiateCert' 服务“ SslRequireCert”的SSL设置与IIS“ Ssl,SslNegotiateCert”的SSL设置不匹配

All iis settings seem to be the same between the two environments 两种环境之间的所有iis设置似乎都相同

Jeremy 杰里米

This can be caused by the IIS settings not matching the WCF configuration. 原因可能是IIS设置与WCF配置不匹配。

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

The error message is very explicit. 该错误消息非常明确。 It is saying 'SSLRequireCert' or clientCredentialType="Certificate" does not match IIS settings of 'Ssl, SslNegotiateCert' or Client certificates: Accept. 这是说'SSLRequireCert'或clientCredentialType =“ Certificate”与“ Ssl,SslNegotiateCert”或客户端证书的IIS设置不匹配:接受。 To fix this in IIS you need ClientCertificates: Require. 要在IIS中解决此问题,您需要ClientCertificates:要求。

In my case Server 2008 R2/IIS 7.5 behaved differently to Windows 7/IIS 7.5 & Windows 8.1/IIS 8.5. 就我而言,Server 2008 R2 / IIS 7.5的行为不同于Windows 7 / IIS 7.5和Windows 8.1 / IIS 8.5。 In both of the desktop OS version I could run the application with Require SSL/ Client certificate: Accept. 在两个桌面操作系统版本中,我都可以使用“需要SSL /客户端证书:接受”来运行应用程序。

But on Server 2008 R2/IIS 7.5 the page would not load with the error SSL settings for the service 'SslRequireCert' does not match those of the IIS 'Ssl, SslNegotiateCert' Changing to Client certificate: Require resolved the issue. 但是在Server 2008 R2 / IIS 7.5上,该页面不会加载错误的SSL设置,服务“ SslRequireCert”的服务与IIS“ Ssl,SslNegotiateCert”的SSL设置不匹配。更改为客户端证书:Require解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS-带有客户端证书的SSL设置接受 - IIS - SSL Settings with client certificate Accept 客户端上的WCF服务-SSL证书 - WCF Service on Client Side - SSL Certificate WCF SSL客户端证书错误 - WCF SSL Client certificate error wcf服务服务器和客户端证书与SSl证书不同时的安全异常 - Security exception when wcf service server and client certificate is different than SSl certificate 使用 c# 使用证书进行 SSL 客户端身份验证 - SSL Client Authentication with certificate using c# 不带IIS的HTTPS上的WCF服务,带有来自CERT和KEY字符串或文件的SSL证书 - WCF Service over HTTPS without IIS, with SSL Certificate from CERT and KEY strings or files 具有SSL和用户名和密码身份验证的自主WCF服务 - Selfhosted WCF Service with SSL and Username and Password authentication IIS托管具有SSL安全性的WCF-“ HTTP请求被客户端身份验证方案&#39;Anonymous&#39;禁止”错误 - IIS hosted WCF with SSL security -“The HTTP request was forbidden with client authentication scheme 'Anonymous'” error 涉及来自客户端笔记本电脑的带有 SSL 证书的 SharePoint WCF 服务失败 - To involve SharePoint WCF Service with SSL-Certificate from Client laptop failed 无法使用SSL向IIS Express中托管的WCF服务添加服务引用 - Trouble adding service reference to WCF service hosted in IIS Express with SSL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM