Hi Ghislain,
I'm using Xceed FTP 4.1 . I'm trying to connect FTP server which is hosted on WIndows Server 2008. I can able to transfer the file with normal FTP, but when I'm trying with SSL, its throwing below error...
The handshake failed due to an unexpected packet format.
SslStream authentication failed. Possible causes: 1) The server requires a certificate in order to connect and none was provided. 2) The certificate provided was rejected by the .NET framework/Windows (usually because it doesn't contain a private key). 3) The certificate provided was rejected by the server.
Here is my code:
using
XFTP = Xceed.Ftp;
XFTP.
AsyncFtpClient ftpClienti = new Xceed.Ftp.AsyncFtpClient();
ftpClienti.PassiveTransfer = true;
ftpClienti.CertificateReceived +=
new XFTP.CertificateReceivedEventHandler(certificate_received);
ftpClienti.Connect("server", 990, XFTP.
AuthenticationMethod.Tls, XFTP.VerificationFlags.None, null);
ftpClienti.Login(FtpUsername, FtpPassword);
I have installed the FTP SSL certificate also.. still its throwing SslStream authentication failed exception.
Can you please help on this?