FubarDevelopment / FtpServer

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

ServerCertificate #145

Open alexandrius007 opened 2 years ago

alexandrius007 commented 2 years 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 2 years ago

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

alexandrius007 commented 2 years ago

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