From d9afa19fa2c8afb94f651e3f349219f67e03328e Mon Sep 17 00:00:00 2001 From: Gonzalo Gallotti Date: Tue, 7 Feb 2023 09:25:00 -0300 Subject: [PATCH] Change TLS 1.0 to TLS1.2 for Push notifications --- dotnet/src/dotnetframework/SDNetAPI/IOSNotifications.cs | 4 ++-- .../SDNetAPI/PushSharp/Platforms/Apple/ApplePushChannel.cs | 3 +-- .../SDNetAPI/PushSharp/Platforms/Apple/FeedbackService.cs | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dotnet/src/dotnetframework/SDNetAPI/IOSNotifications.cs b/dotnet/src/dotnetframework/SDNetAPI/IOSNotifications.cs index 8711b8db0..aefc07493 100644 --- a/dotnet/src/dotnetframework/SDNetAPI/IOSNotifications.cs +++ b/dotnet/src/dotnetframework/SDNetAPI/IOSNotifications.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -177,7 +177,7 @@ private static bool DoCall(string server, string p12path, int port, Action { return true; }, (sender, targetHost, localCerts, remoteCert, acceptableIssuers) => { return certificate; }); - stream.AuthenticateAsClient(settings.FeedbackHost, certificates, System.Security.Authentication.SslProtocols.Tls, false); + stream.AuthenticateAsClient(settings.FeedbackHost, certificates, System.Security.Authentication.SslProtocols.Tls12, false); //Set up