How to reject non-encrypted connections when I use the TLS function?
Closed this issue · 2 comments
Adwa0428 commented
Hi,
I set the FTPS server as the example:
var cert = new X509Certificate2("my.pfx", "my-super-strong-password-that-nobody-knows");
services.Configure(cfg => cfg.ServerCertificate = cert);
The FTP server allows to create TLS connections via FTP clients. But it still allows to create non-encrupted connections.
How could I set to reject non-encrypted connections, and only allow TLS connections?
Thanks.
fubar-coder commented
You can try to use implicit TLS, which means that every connection must be encrypted from the start.
Adwa0428 commented
I tried to use implicit TLS and it works fine. Thanks for you great help!