I have a WebForms based website hosted on Azure (WebApps / Website) and it is failing PCI validation because TLS 1.0 isn't disabled. Because of the nature of Azure, I can't disable this via the server. Is there a way to disable it via code?
I was trying to disable it in my Global.asax file, but it doesn't seem to work.
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
//Try to disable tls1.0 and only allow tls1.1 and 1.2
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
}
Any help would be appreciated.
Go to the complete details ...