I need to call an external HTTPS site with provided Certificate(s)

I use RestSharp and running on my PC it works perfect.

When I depluy to Azure Worker Role and debug i get "Cant establish SSL/TLS connection"

I create a console app with the same codebase. I RDP the VM and copy/paste the exe.

I can see that all Certificates are installed. (I installed them using MMC)

I can see that the console workflow is exactly the same as when I run it on my PC. But the HTTPS connection is not working.

Try to run the Console exe as Admin. Same result.

Tried the ServiceManager tricks

ServicePointManager.Expect100Continue = true; ServicePointManager.DefaultConnectionLimit = 9999;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

This works local on my PC but dont work in Azure Worker role

Is a worker Role able to connect to an external HTTPS using a self-signed Certificate?

0 Answers