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

0 votes
asked Sep 15, 2010 by Anil (120 points)
edited Sep 16, 2010

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
answered Sep 16, 2010 by Vit Zyka (1,000 points)
edited Sep 16, 2010

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.

...