Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by (160 points)
Hello,

I'm tring to write a FTP client that will connect with Implicit ssl connection but with no luck.

I used the following for a regular FTP connection without ssl

private void button1_Click(object sender, EventArgs e)
        {

            // set the license
            secureFTPConnection1.LicenseOwner = "*";
            secureFTPConnection1.LicenseKey = "*";

            secureFTPConnection1.ServerAddress = "*";
            secureFTPConnection1.ServerPort = 21;
            secureFTPConnection1.UserName = "*";
            secureFTPConnection1.Password = "*";

       }


What i need to add here that the SSL will work
I'm using Visual Studio 2005 C# Lang.


Thanks in advance.[/code]

3 Answers

0 votes
by (162k points)
You need to:

secureFTPConnection1.Protocol = FileTransferProtocol.FTPSImplicit

Also don't set the port number, as 21 isn't the implicit port (it is 990).

Note that implicit SSL is deprecated and not recommended.
0 votes
by (160 points)
Thank you for the response.

Regarding the port it can be what ever i want, i use 2244.
About the FTPSImplicit:
secureFTPConnection1.Protocol = FileTransferProtocol.FTPSImplicit  (cant find it)
secureFTPConnection1.Protocol = EnterpriseDT.Net.Ftp.FileTransferProtocol.FTPSImplicit; (i used this)

Regarding the full code:
private void button1_Click(object sender, EventArgs e)
        {

            // set the license
            secureFTPConnection1.LicenseOwner = "*";
            secureFTPConnection1.LicenseKey = "*";

            //secureFTPConnection1 ftpc = new secureFTPConnection1();
            secureFTPConnection1.ServerAddress = "*";
            secureFTPConnection1.ServerPort = 2244;
            secureFTPConnection1.UserName = "*";
            secureFTPConnection1.Password = "*";
            secureFTPConnection1.Protocol = EnterpriseDT.Net.Ftp.FileTransferProtocol.FTPSImplicit;
            secureFTPConnection1.ServerValidation = EnterpriseDT.Net.Ftp.SecureFTPServerValidationType.None;          
        }



Should i add another thing?

Cause this program not working on all computers.

Please advice

Thanks in advance.

Alik
0 votes
by (162k points)
Can you post more info on what isn't working? 990 is the default implicit port but of course you can have it set to anything.

Log file snippet would be handy.

Categories

...