X.509 Chain Building Failed when connected to AppFabric

Having written a test application for my AppFabric-based library, I started getting a weird exception.

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.

I tried the following configuration without success

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

as well as ServicePointManager.CheckCertificateRevocationList set without false .

+2
source share
1 answer

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

After a long search, I decided to clear the CRL because it is cached. I finally found the answer in a comment in a blog post.

This worked for me:

  • Close Visual Studio and ensure that all instances and processes associated with your test applications are closed.
  • Open elevated CMD and type certutil -urlcache * delete
  • I restarted the PC for a good grade, but it is not needed

Interestingly, this is not an AppFabric problem, but something on Windows machines. Let me know if this works.

+2
source

All Articles