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

eric.salyer

Reuse TLS session ID for data connections

I can use the GUI to connect to scanftpaws.performancematters.com using FTP with explicit TLS, but only if I restrict the TLS version to 1.2 and UNCHECK the “Reuse TLS session ID for data connections” box in Advanced Site settings. That's fine.

The problem is that I need to do the same using .NET. I can restrict the TLS version using SessionOptions.AddRawSettings, but I don't know how to uncheck “Reuse TLS session ID for data connections” in .NET. Can anyone tell me? Code:


sessionOptions.AddRawSettings("MinTlsVersion", "12")
sessionOptions.AddRawSettings("MaxTlsVersion", "12")
sessionOptions.AddRawSettings("ReuseTlsSessionId", "0")

I think AI invented that third line of code. I don't find that raw setting in the documentation. The error I'm getting is:

Lost connection. SSL3 alert write: fatal: protocol version The server is using unsupported protocol. Your WinSCP session is configured to use TLSv1.2 through TLSv1.2. It can be configured to use TLSv1.0 through TLSv1.3. Though, avoid using old insecure protocols, whenever possible. OpenSSL 0A000139: record layer failure An established connection was aborted by the software in your host machine. Disconnected from server Copying files to remote side failed. Copying files to remote side failed.