Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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!
Guest

Re: Winscp transition to TLS 1.2

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

Re: Winscp transition to TLS 1.2

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

Re: Winscp transition to TLS 1.2

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

Re: Winscp transition to TLS 1.2

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

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();
}