C# WCF服务没有';t检查客户端证书CRL链
端点绑定是WSHttpBinding,安全模式为Message,clientCredentialType为Certificate 我在服务器端设置了以下行为(设置服务器证书和验证客户端证书):C# WCF服务没有';t检查客户端证书CRL链,c#,wcf,security,certificate,C#,Wcf,Security,Certificate,端点绑定是WSHttpBinding,安全模式为Message,clientCredentialType为Certificate 我在服务器端设置了以下行为(设置服务器证书和验证客户端证书): 我通过以下方式设置客户端证书: <behavior name="clientEndpointCredential"> <clientCredentials> <clientCertificate storeNa
我通过以下方式设置客户端证书:
<behavior name="clientEndpointCredential">
<clientCredentials>
<clientCertificate
storeName="My"
storeLocation="LocalMachine"
x509FindType="FindBySubjectName"
findValue="MyClientCertificateName" />
</clientCredentials>
</behavior>
使用此代码,服务器检查客户端CRL和对等信任。这张支票行得通
问题是在客户端凭据中添加以下代码时:
<serviceCertificate>
<authentication
certificateValidationMode="PeerTrust"
trustedStoreLocation="LocalMachine"
revocationMode="Online" />
</serviceCertificate>
</clientCredentials>
更改clientCredentials.ServiceCertificate.Authentication属性时,不会检查CRL链!crl发布服务器已关闭,服务器仍接收客户端消息
我想添加这段代码,以便让客户端验证服务器证书链
提前谢谢你的帮助
<serviceCertificate>
<authentication
certificateValidationMode="PeerTrust"
trustedStoreLocation="LocalMachine"
revocationMode="Online" />
</serviceCertificate>
</clientCredentials>