Why access to Windows Azure CloudBlobContainer is sometimes interrupted. Remote Certificate Invalid According to Validation Procedure

I am using Windows Azure Evaluation Subscription.

Sometimes, when I try to access methods in CloudBlobContainer, like GetPermissions (), the web service freezes. After adding some protocols, I see: β€œThe main connection was closed: Failed to establish trust for the SSL / TLS secure channel. The remote certificate is not valid according to the verification procedure.” In my log.

I also had this happen when using CreateIfNotExists ().

What could be the reason for this?

I recently upgraded version from version 1.7 to version 2 of the storage client library, but still see this behavior.

+6
source share
2 answers

I am going to answer my question in the hope that this is useful to someone else.

The problem was in the scope of ServicePointManager.ServerCertificateValidationCallback.

It is static and calls CloudBlobContainer methods after it is installed.

+1
source

This is not a problem that I encountered before, but if the error message is accurate, there is something scared with an SSL certificate in stock. A possible job is to simply not use SSL. If you are talking to a storage account in the same data center, I do not think that this will adversely affect security. You should do this by simply changing https to http in your connection string.

If this really works, it may pay for MS support, it may indicate a problem from the end.

+1
source

All Articles