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
Joined:
Posts:
33,846
Location:
Prague, Czechia

Re: Winscp transition to TLS 1.2

Your code uses SFTP or SCP protocols over SSH. It does not use TLS at all.

Reply with quote

rkganapathy
Joined:
Posts:
4
Location:
India

Re: Winscp transition to TLS 1.2

martin wrote:

Your code uses SFTP or SCP protocols over SSH. It does not use TLS at all.

Please help to resolve this requirement.What I need to implement in my code.

Reply with quote

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

Guest

Re: Winscp transition to TLS 1.2

martin wrote:

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

Then it will support TLS 1.2 else please suggest any link to implement.

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