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: .NET Get the current connection

Finding out what version of TLC is used is very different problem than what you have asked originally. You can find that in the session log only.
But instead, you can make WinSCP not allow older versions of TLS:
FTPCon.AddRawSettings("MinTlsVersion", "13")

But if you want a secure connection, you cannot set GiveUpSecurityAndAcceptAnyTlsHostCertificate = True in the first place!
Guest

Re: .NET Get the current connection

Yes - but i will know if my session is correct set.

Look, my code is:
With FTPCon
    .Protocol = Protocol.Ftp
    .HostName = FtpServer.ServerAdress
    .UserName = FtpServer.UserName
    .Password = FtpServer.Password
    .PortNumber = FtpServer.Port
    .FtpSecure = FtpSecure.Explicit
    .GiveUpSecurityAndAcceptAnyTlsHostCertificate = True
End With

But I will know, if TLS1.3 is used.
martin

Re: .NET Get the current connection

When you open a session with the WinSCP .NET assembly, you know what protocol did you ask it to use, don't you?
KMMike

.NET Get the current connection

After I open a connection with the .NET/WinSCP-Lib I will see, the current connection info. How can I do it to see, which protocol, if TLS is used and so on.