0 votes
by (2.0k points)

Hi.

When using FTP SSL, how can I know which version of TLS was finally negotiated by FTPS?

Best regards.

BooKyung Oh.
OpenBoxLab Inc.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
by (148k points)

Use Ftp object's TlsSocket.Cipher.Protocol property:

var ftp = new Ftp();
ftp.Connect("test.rebex.net", SslMode.Explicit);
Console.WriteLine(ftp.TlsSocket.Cipher.Protocol);
...