Skip to content

Commit 6a6e12a

Browse files
committed
Added ServicePointManager.SecurityProtocol to constructor to allow Umbraco 7 to use BLob Storage using TLS 1.2
1 parent d4f1468 commit 6a6e12a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Our.Umbraco.FileSystemProviders.Azure
1414
using System.Globalization;
1515
using System.IO;
1616
using System.Linq;
17+
using System.Net;
1718
using System.Text.RegularExpressions;
1819
using System.Web;
1920
using global::Umbraco.Core.Configuration;
@@ -88,6 +89,8 @@ internal class AzureFileSystem : IFileSystem
8889
/// </exception>
8990
internal AzureFileSystem(string containerName, string rootUrl, string connectionString, int maxDays, bool useDefaultRoute, BlobContainerPublicAccessType accessType)
9091
{
92+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
93+
9194
if (string.IsNullOrWhiteSpace(containerName))
9295
{
9396
throw new ArgumentNullException(nameof(containerName));

0 commit comments

Comments
 (0)