Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reject non-encrypted connections when I use the TLS function? #142

Closed
Adwa0428 opened this issue Sep 12, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@Adwa0428
Copy link

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
Copy link
Contributor

You can try to use implicit TLS, which means that every connection must be encrypted from the start.

@Adwa0428
Copy link
Author

I tried to use implicit TLS and it works fine. Thanks for you great help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants