Skip to content

Commit

Permalink
Fixes #4166 - Outgoing connections sometimes fail because they requir…
Browse files Browse the repository at this point in the history
…e TLS 1.2
  • Loading branch information
nul800sebastiaan committed Jan 21, 2019
1 parent e1c9b18 commit ba4b84d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Umbraco.Web/WebBootManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Configuration;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Configuration;
using System.Web.Http;
Expand Down Expand Up @@ -130,6 +131,10 @@ public override IBootManager Initialize()
InstallHelper insHelper = new InstallHelper(UmbracoContext.Current);
insHelper.DeleteLegacyInstaller();

// Tell .net 4.5 that we also want to try connecting over TLS 1.2, not just 1.1
if (ServicePointManager.SecurityProtocol.HasFlag(SecurityProtocolType.Tls12) == false)
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol | SecurityProtocolType.Tls12;

return this;
}

Expand Down

0 comments on commit ba4b84d

Please sign in to comment.