Hello, I have the same problem.
I use the current 4.0.6755 version.
If I run the code in my application under Windows, I can connect to FTP.
If I then run it under Unix I get a handshake error (ErrorRebex.Net.TlsException: Fatal error 'HandshakeFailure' has been reported by the remote connection end.)
My Code:
I use the library in an AspCore project.
using (var client = new Rebex.Net.Ftp())
{
client.Settings.SslAcceptAllCertificates = true;
client.SecureTransfers = true;
client.Connect(FtpConfiguration.Value.Host, FtpConfiguration.Value.Port);
if (FtpConfiguration.Value.Ssl == true)
client.Secure();
client.Login(FtpConfiguration.Value.Username, FtpConfiguration.Value.Passwort);
client.ChangeDirectory("/");
}
Can you tell me why it works under Windows and not under Linux
Regards
Info:
FehlerRebex.Net.TlsException: Fatal error 'HandshakeFailure' has been reported by the remote connection end. ---> Rebex.Net.TlsException: Fatal error 'HandshakeFailure' has been reported by the remote connection end.
at aumk.utye(Byte[] bcs, Int32 bct, Int32 bcu)
at aumj.utxm(Byte[] ans, Int32 ant, Int32 anu)
at aumj.utxq()
--- End of inner exception stack trace ---
at aumj.utxq()
at aumj.utxx()
at wnnt.xfrr(TlsParameters pi)
at Rebex.Net.Ftp.elmo(TlsParameters ep, FtpSecureUpgradeType eq)
at Rebex.Net.Ftp.elmm(TlsParameters em, FtpSecureUpgradeType en)