【发布时间】:2014-03-18 09:39:33
【问题描述】:
我目前正在使用 FindByThumbprint 来检索我的证书 - 但是当指纹更改时,这会在撤销/更新时导致问题。我想按主题名称查找我的证书。但是,有多个具有相同名称的证书。如果我没记错的话,这将引发异常。
是否可以通过主题名称查找并检索最新的有效证书?使用配置文件中的设置。
<behaviors>
<endpointBehaviors>
<behavior name="endpointCredentialBehavior" xdt:Transform="Replace" xdt:Locator="Match(name)">
<headerSecurityToken />
<clientCredentials>
<clientCertificate findValue="-------"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindByThumbprint" />
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
谢谢
【问题讨论】:
-
你成功了吗?我的情况完全相同,正在寻找解决方案。如果可能的话,请您在此处发布您的解决方案作为答案。
标签: ssl ssl-certificate x509certificate