For some reason, I can't seem to get an SSL ftp connection to work. I am able to hit the site using both CoreFTP and the FireFTP plugin for Firefox. But, when I try to connect using xceed, I get the output below (trace enabled). I added a logger for the Command sent event, but nothing is being sent. The site is using a self issued certificate, but I think that I am allowing if with the flags passed in the Call to connect.
<b>Output
-------------------------------------------------</b>
Connected to 207.24.42.24:21 on 12/3/2007 @ 2:06:33 PM
Disconnected from 207.24.42.24:21 on 12/3/2007 @ 2:06:33 PM
<b>StackTrace:
-------------------------------------------------</b>
at Xceed.Ftp.Engine.ConnectFtpCommand.EndExecute(IAsyncResult asyncResult)
at Xceed.Ftp.FtpClient.Connect(FtpCommandChannel commandChannel, ConnectFtpCommand command)
at Xceed.Ftp.FtpClient.Connect(String hostName, Int32 port, AuthenticationMethod authenticationMethod, VerificationFlags verificationFlags, Certificate clientCertificate)
at RCS.Forms.Test.FileGenerator.button1_Click(Object sender, EventArgs e)
<b>Source Code
-------------------------------------------------</b>
Xceed.Ftp.FtpClient ftp = new Xceed.Ftp.FtpClient();
ftp.TraceWriter = Console.Out;
ftp.CommandSent += new Xceed.Ftp.CommandSentEventHandler(ftp_CommandSent);
ftp.CertificateReceived += new Xceed.Ftp.CertificateReceivedEventHandler(ftp_CertificateReceived);
ftp.CertificateRequired += new Xceed.Ftp.CertificateRequiredEventHandler(ftp_CertificateRequired);
<b>// THIS LINE THROWS THE EXECEPTION:</b>
ftp.Connect(textBoxFtpHost.Text, 21, Xceed.Ftp.AuthenticationMethod.Tls,
Xceed.Ftp.VerificationFlags.AllowUnknownCA | Xceed.Ftp.VerificationFlags.AllowTestRoot
| Xceed.Ftp.VerificationFlags.TrustTestRoot
, null);