Skip to content

Commit

Permalink
#5282 Let the operating system decide what TLS protocol version to use
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKulagin committed Feb 9, 2021
1 parent 90be448 commit fa2171a
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -52,8 +52,9 @@ public static class ServiceCollectionExtensions
public static (IEngine, AppSettings) ConfigureApplicationServices(this IServiceCollection services,
IConfiguration configuration, IWebHostEnvironment webHostEnvironment)
{
//most of API providers require TLS 1.2 nowadays
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
//let the operating system decide what TLS protocol version to use
//see https://docs.microsoft.com/dotnet/framework/network-programming/tls
ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault;

//create default file provider
CommonHelper.DefaultFileProvider = new NopFileProvider(webHostEnvironment);
Expand Down

0 comments on commit fa2171a

Please sign in to comment.