[英]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.