0 votes
by (120 points)
edited

After doing an ftp connect "ftp.Connect(hostname, portnumber, par, FtpSecurity.Explicit);" it get the below exception. This happens right after i do a connect. FTP over ssl and the

TlsParameters par = new TlsParameters(); par.CertificateVerifier = CertificateVerifier.AcceptAll;

This happens when i call ftp.secure().

Rebex.Net.TlsException: Secure connection was closed by the remote connection end

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
by (1.0k points)
edited

Hello,

by calling the ftp.Connect(hostname, portnumber, par, FtpSecurity.Explicit) you are instructing the FTP component to establish a SSL connection during the connect. Subsequent calling of Secure command will try to secure already secured communication channel. This is the most probable cause of this error.

For more info see our tutorial Connecting to an FTP/SSL server using SSL.

If this does not solve your problem, please send us your communication log file. Link shows how to create it.

...