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

asked 15 Sep '10, 19:31

Anil's gravatar image

Anil
161
accept rate: 0%

edited 16 Sep '10, 16:08

Rebex%20KB's gravatar image

Rebex KB ♦♦
258519


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.

link

answered 16 Sep '10, 16:04

Vit%20Zyka's gravatar image

Vit Zyka
912
accept rate: 8%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×23
×22
×10

Asked: 15 Sep '10, 19:31

Seen: 1,026 times

Last updated: 16 Sep '10, 16:08