FtpServer icon indicating copy to clipboard operation
FtpServer copied to clipboard

ServerCertificate

Open alexandrius007 opened this issue 3 years ago • 2 comments

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.

alexandrius007 avatar Sep 29 '22 12:09 alexandrius007

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

fubar-coder avatar Sep 29 '22 14:09 fubar-coder

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

alexandrius007 avatar Oct 06 '22 15:10 alexandrius007