Skip to content

Commit 1109ca6

Browse files
authored
Merge pull request #187 from binraider/tls_1.2_fix
Tls 1.2 fix
2 parents 5d993ea + fd02074 commit 1109ca6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace Our.Umbraco.FileSystemProviders.Azure
1717
using System.Globalization;
1818
using System.IO;
1919
using System.Linq;
20+
using System.Net;
2021
using System.Text.RegularExpressions;
2122
using System.Web;
2223
using global::Umbraco.Core.Configuration;
@@ -91,6 +92,9 @@ internal class AzureFileSystem : IFileSystem
9192
/// </exception>
9293
internal AzureFileSystem(string containerName, string rootUrl, string connectionString, int maxDays, bool useDefaultRoute, BlobContainerPublicAccessType accessType)
9394
{
95+
96+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
97+
9498
if (string.IsNullOrWhiteSpace(containerName))
9599
{
96100
throw new ArgumentNullException(nameof(containerName));

0 commit comments

Comments
 (0)