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

This commit is contained in:
Jaex 2018-10-15 10:39:21 +03:00
parent 0cfdce8ef6
commit c8550c3f2a

View file

@ -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))