【发布时间】:2011-09-05 22:15:52
【问题描述】:
我正在构建一个基于 WCF 的应用程序,用户使用智能卡上的证书进行身份验证。该服务托管在 IIS7 上,客户端是 Windows 窗体应用程序。
问题在于,当添加新用户(创建新证书)时,该用户无法登录,直到 IIS 重新启动或应用程序池回收。如果现有用户被删除,他也可以登录,直到重新启动/回收。
在我的行为定义中我有
<serviceCredentials>
<serviceCertificate findValue="blahblah.local"
x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />
<userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
membershipProviderName="SqlMembershipProvider" cacheLogonTokens="true"/>
<clientCertificate>
<authentication mapClientCertificateToWindowsAccount="true"
certificateValidationMode="ChainTrust" revocationMode="Online"/>
</clientCertificate>
</serviceCredentials>
有什么方法可以防止此证书“缓存”发生或按需刷新活动证书列表?
【问题讨论】:
-
如何添加新的证书/客户端?
标签: wcf iis-7 x509certificate