From c8550c3f2a1cd1b753a8f7b2eb520270c04882fb Mon Sep 17 00:00:00 2001 From: Jaex Date: Mon, 15 Oct 2018 10:39:21 +0300 Subject: [PATCH] fixed #3635: FTPS library was accepting SSL 3.0 and TLS 1.0 by default, now instead it will accept TLS 1.0, TLS 1.1 and TLS 1.2 --- ShareX.UploadersLib/FileUploaders/FTP.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ShareX.UploadersLib/FileUploaders/FTP.cs b/ShareX.UploadersLib/FileUploaders/FTP.cs index a8be9ed1d..72245fbfb 100644 --- a/ShareX.UploadersLib/FileUploaders/FTP.cs +++ b/ShareX.UploadersLib/FileUploaders/FTP.cs @@ -32,6 +32,7 @@ You should have received a copy of the GNU General Public License using System.IO; using System.Net; using System.Net.Security; +using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Windows.Forms; @@ -141,6 +142,7 @@ public FTP(FTPAccount account) break; } + client.SslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; client.DataConnectionEncryption = true; if (!string.IsNullOrEmpty(account.FTPSCertificateLocation) && File.Exists(account.FTPSCertificateLocation))