FTPS Implicit mode with certificate

Advertisement

EtienneWRS
Joined:
Posts:
2
Location:
sydney

FTPS Implicit mode with certificate

Hi

I'm sorry as it seems to be a basic question but I cannot find how to specify my certificate file for connecting in FTPS implicit mode.

I have actually the same problem in any FTP client (in filezilla for example, you can choose implicit FTPS mode, but where do you specify you certificate file ?)

My requirement is that I need to interact with an FTPS server through C# code.
Currently we are manually uploading/downloading files using a cmd line FTP client called MoveIt.
command line looks like:
ftps -user:XXX -password:XXX -e:tls-c -z "-ccn:XXX(cert friendly name)" -natact:XXX(IP) 990
PROT P


// Setup session options
      SessionOptions sessionOptions = new SessionOptions
                                                    {
                                                        Protocol = Protocol.Ftp,
                                                        FtpSecure = FtpSecure.Implicit,
                                                        HostName = "xxx",
                                                        PortNumber = 990,
                                                        UserName = "xxx",
                                                        Password = "xxx"

                                                    };
               

I've been trying to play with the SslCertificate and SslHostCertificateFingerprint but never got it to work (I always get an error about reg exp not respected).

Any help would be very much appreciated

Thanks

Reply with quote

Advertisement

EtienneWRS
Joined:
Posts:
2
Location:
sydney

Thanks

After trying many different FTP client I finally found a .NET API that supports that feature.
It's not free though :|

Reply with quote

Advertisement

You can post new topics in this forum