本文介绍了X.509链构建连接到的AppFabric时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

写作我AppFabric的基于库的测试应用程序,我开始一个奇怪的例外。

Writing a test application for my AppFabric-based library, I started getting a strange exception.

的X.509证书CN = servicebus.appfabriclabs.com链建设失败。使用该证书无法验证的信任链。更换证书或更改certificateValidationMode。吊销功能无法检查吊销,因为吊销服务器处于脱机状态。

我试过用一个配置,但没有成功。

I've tried with next configuration with no success

<behaviors>
 <endpointBehaviors>
  <behavior name="SecureMessageUserName">
   <clientCredentials>
     <serviceCertificate>
        <authentication revocationMode="NoCheck"/>
     </serviceCertificate>
   </clientCredentials>
  </behavior>
 </endpointBehaviors>
</behaviors>

和也 ServicePointManager.CheckCertificateRevocationList 设置为,但没有成功。

推荐答案

奇怪的是,我不是很久以前有同样的问题。我联系了AppFabric的团队,他们证实什么是错的实际证书。

Surprisingly, I had the same problem not so long ago. I contacted the AppFabric team, and they confirmed nothing was wrong with the actual certificate.

在很多球探的时候,我认为是清除CRL,因为它可以让缓存。我终于找到了答案

After a lot of scouting around, I considered clearing the CRL, because it gets cached. I finally found the answer in a comment in a blog post.

这为我工作:


  • 关闭Visual Studio并确保所有实例和放大器;与您的测试应用程序都关闭

  • 开启CMD升高的特权时,并键入的certutil -urlcache *删除

  • 我重新启动电脑的好办法,但它没有必要

有趣的是,这不会出现是一个的AppFabric问题,但是,从Windows机器的东西。让我知道,如果它的工作原理。

Interestingly enough, this does not appear to be an AppFabric issue but something on the Windows machines. Let me know if it works.

这篇关于X.509链构建连接到的AppFabric时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 08:57