Secure Sockets Layer—SSL for short—is a standard security protocol that is used to encrypt communications between a web server and a web browser.

Without it, information that is exchanged between a server and a client is sent in plain text, so would be readable by any hacker who is able to capture the data.

SSL ensures that information sent between server and client is always encrypted.

Even if captured, your sensitive data—user name, password, credit card details, etc.—will remain unreadable to anyone lacking the SSL certificate and encryption key shared by the server and client during the communications session.

In this article we will look at how we can work with SSL in ASP.Net Core.

We will use a new middleware component, UseHttpsRedirection, to redirect all HTTP requests to HTTPS.

The text above is a summary, you can read full article here.