ClientCredentialType证书验证模式---- PeerOrChainTrust验证模式
PeerOrChainTrust验证模式验证证书是否位于 TrustedPeople 证书存储区中 ,或通过构建证书信任链来验证证书。如果证书通过任一验证方法,就是受信任 的。设置验证模式为“PeerOrChainTrust”的配置如以下代码所示。
在服务端设置验证客户端凭据模式为“PeerOrChainTrust”:
<clientCertificate > <certificate findValue="XuanhunClient" storeLocation="CurrentUser" storeName="My" x509FindType="FindBySubjectName"/> <authentication certificateValidationMode="PeerOrChainTrust" trustedStoreLocation="CurrentUser" /> </clientCertificate>
在客户端设置验证服务端凭据模式为“PeerOrChainTrust”:
<serviceCertificate > <defaultCertificate x509FindType="FindBySubjectName" storeLocation="CurrentUser" storeName="TrustedPeople" findValue="XuanhunServer" /> <authentication certificateValidationMode="PeerOrChainTrust" /> </serviceCertificate>
作者:玄魂
出处:http://www.cnblogs.com/xuanhun/
查看本栏目更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/Programming/net/
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索客户端
, 验证
, 证书
, 服务
, 模式
www
wcf nettcpbinding、wcf binding、wcf wshttpbinding、wcf binding类型、wcf basichttpbinding,以便于您获取更多的相关知识。