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.
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.