FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
472 stars 161 forks source link

ServerCertificate #145

Open alexandrius007 opened 1 year ago

alexandrius007 commented 1 year ago

Hello,

if I set up

  .Configure<AuthTlsOptions>(
                opt =>
                {
                    opt.ServerCertificate = ServerCertificate;
};

Then await serverCommandFeature.ServerCommandWriter.WriteAsync(new SendResponseServerCommand(response), cancellationToken).ConfigureAwait(false); sending to client error doen't works (client receive timeout) image

May be I have to set setup another feature?

If ServerCertificate is commented... ftp work's fine.

fubar-coder commented 1 year ago

Is there an error on the server side? IIRC there's nothing you have to configure to enable FTPS.

alexandrius007 commented 1 year ago

I changed BUILD definitions to USE_SYNC_SSL_STREAM and manipulation with certificate... helped me.