为我的基于AppFabric的库编写测试应用程序,我开始遇到一个奇怪的例外。
The X.509 certificate CN=servicebus.appfabriclabs.com chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. The revocation function was unable to check revocation because the revocation server was offline.
我已尝试使用下一个配置但没有成功
<behaviors>
<endpointBehaviors>
<behavior name="SecureMessageUserName">
<clientCredentials>
<serviceCertificate>
<authentication revocationMode="NoCheck"/>
</serviceCertificate>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
以及ServicePointManager.CheckCertificateRevocationList
设置为false
但没有成功。
答案 0 :(得分:2)
令人惊讶的是,不久前我遇到了同样的问题。我联系了AppFabric团队,他们确认实际证书没有问题。
经过大量的侦察,我考虑清除CRL,因为它被缓存了。我终于找到了答案in a comment in a blog post.
这对我有用:
certutil -urlcache * delete
有趣的是,这似乎不是AppFabric问题,而是Windows机器上的问题。如果有效,请告诉我。