Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FluentFTP cannot connect to POC ftps server #7

Open
drweb86 opened this issue Dec 8, 2024 · 0 comments
Open

FluentFTP cannot connect to POC ftps server #7

drweb86 opened this issue Dec 8, 2024 · 0 comments

Comments

@drweb86
Copy link

drweb86 commented Dec 8, 2024

Hi guys

FluentFTP cannot connect to this FTP server project with demanded encryption.

If to verify supported connection modes you can use the next code on temporarry project

using FluentFTP;

var client = new AsyncFtpClient(
	"127.0.0.1",
	"VoDA",
	"123",
	5021,
	new FtpConfig
	{
		SslProtocols = System.Security.Authentication.SslProtocols.None,
		EncryptionMode = FtpEncryptionMode.Auto
	});

client.ValidateCertificate += Client_ValidateCertificate;

void Client_ValidateCertificate(FluentFTP.Client.BaseClient.BaseFtpClient control, FtpSslValidationEventArgs e) {
	e.Accept = true;
}

var det = await client.AutoDetect(false, true);

foreach (var detectedConfig in det)
{
	Console.WriteLine(detectedConfig.Encryption);

}

Console.ReadLine();

the response would be

None

Also Far manager fails to connect to FTPS in test project. So FTPS is implemented incorrectly.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant