WinSCP transition to TLS 1.2

Advertisement

rkganapathy
Joined:
Posts:
4
Location:
India

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.
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
Following code I am using in my service.
// 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();
}

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Winscp transition to TLS 1.2

The requirement does not apply to your code. You do not need to change anything!

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Winscp transition to TLS 1.2

For the last time: Your code uses SFTP or SCP protocols. Those protocols are based on SSH. Not TLS. So whatever change they made has no impact whatsoever on your code. You do not need to change anything!

Reply with quote

Advertisement

You can post new topics in this forum