Je me connecte à partir de Windows Server 2008 R2 à un serveur FTP Linux exécutant vsFTPd 2.0.7. Je me connecte via SSL.Comment réparer: L'établissement de liaison a échoué en raison d'un format de paquet inattendu?
Voici la ligne de code, il échoue sur:
sslStream = new SslStream(stream, false, CertificateValidation);
Voici le journal:
220 (vsFTPd 2.0.7)
AUTH SSL
234 Proceed with negotiation.
Je reçois l'erreur suivante:
System.IO.IOException: The handshake failed due to an unexpected packet format.
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at KellermanSoftware.NetFtpLibrary.ProxySocket.InitSsl()
at KellermanSoftware.NetFtpLibrary.FTP.Connect(Boolean implicitConnection)