We have a client with mismatched SSL certificates in their QA environment. We’re making HttpWebRequest calls to those SSL-protected web resources from within an Azure web role. To get around their certificates, we set ServicePointManager.CertificatePolicy to a new policy that accepts all certificates. This works in a full trust environment, but fails with a SecurityPermission exception when we try to set the CertificatePolicy within the less-than-full-trust Azure environment. Is there a way that we can make those calls work from within our Azure service?
A:
I'll answer my own question!
Apparently, to run it in full trust you simply need to enableNativeCodeExecution="true" in the web role configuration.
jspru
2009-05-29 19:42:43