WinSCP transition to TLS 1.2
Hi All,
Currently I am using WinSCP product version 5.9.1.0 for transferring file one machine to another.
Currently I need to upgrade TLS 1.2. What I need to change. Please suggest.
Below requirement got from my client.
Currently I am using WinSCP product version 5.9.1.0 for transferring file one machine to another.
Currently I need to upgrade TLS 1.2. What I need to change. Please suggest.
Below requirement got from my client.
Following code I am using in my service.If your website or applications relies in any part on TLS 1.0 or TLS 1.1, you are advised to do transition to TLS 1.2 or above, in order to be able to reach to our online services
// Setup session options SessionOptions sessionOptions = new SessionOptions { Protocol = ftpMode.ToUpper().ToString() == "SFTP" ? Protocol.Sftp : Protocol.Scp, HostName = hostname, UserName = username, Password = password, PortNumber = port, GiveUpSecurityAndAcceptAnySshHostKey = true, SshPrivateKeyPath = sshprivetekeypath }; using (Session session = new Session()) { // Connect session.Open(sessionOptions); // Upload files TransferOptions transferOptions = new TransferOptions(); transferOptions.FileMask = filemask; transferOptions.TransferMode = TransferMode.Binary; TransferOperationResult transferResult; //transferResult = session.GetFiles("/home/user/*", "d:\\download\\", false, transferOptions); transferResult = session.GetFiles(sourcepath, destinationpath, false, transferOptions); // Throw on any error transferResult.Check(); }