Skip to content

Commit badfa35

Browse files
committed
Enforce Tls 1.2
1 parent 4907a8e commit badfa35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: Global.asax.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ARMExplorer.App_Start;
22
using System.Configuration;
3+
using System.Net;
34
using System.Web.Http;
45

56
namespace ARMExplorer
@@ -9,6 +10,7 @@ public class Global : System.Web.HttpApplication
910

1011
protected void Application_Start()
1112
{
13+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
1214
Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
1315
.Active.InstrumentationKey = ConfigurationManager.AppSettings["AppInsightKey"] ?? System.Environment.GetEnvironmentVariable("AppInsightKey") ?? string.Empty;
1416

0 commit comments

Comments
 (0)