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/
查看本欄目