concept Kestrel in category asp.net

This is an excerpt from Manning's book ASP.NET Core in Action.
In this book, when I say “web server” in the context of ASP.NET Core, I am referring to the HTTP server that runs as part of your ASP.NET Core application. By default, this is the Kestrel web server, but that’s not a requirement. It would be possible to write a replacement web server and substitute if for Kestrel if you desired.
The web server is responsible for receiving HTTP requests and generating responses. In the previous version of ASP.NET, IIS took this role, but in ASP.NET Core, Kestrel is the web server.
Nevertheless, in some situations, you may need to handle SSL directly in your app so that requests are encrypted all the way to the Kestrel server. When developing locally, you may find this is necessary when you’re testing without a reverse proxy. For example, some identity providers such as Azure Active Directory require that requests come from an app running over HTTPS. If you’re not using IIS or IIS Express locally, then in this situation you’ll have to configure Kestrel to handle HTTPS directly.
If you’re on Windows and are using Visual Studio and IIS Express for development, I have some good news—you can still avoid handling SSL certificates directly. IIS Express acts as a reverse proxy when you’re developing locally, so it can handle the SSL setup and the configuration of Kestrel. You get this for free when you add the UseIntegration() extension to your WebHostBuilder in Program.cs and enable SSL in the Debug screen of your project’s Properties page, as shown in figure 18.3.
Once you have a certificate, you can configure Kestrel to serve requests over HTTPS by specifying the URL and port to listen on. In chapter 16, you saw how to set the URLs for your application with the ASPNETCORE_URLS environment variable and the UseConfiguration() extension method, but unfortunately you can only use those to configure HTTP endpoints, not HTTPS. If you want to use Kestrel with HTTPS directly, you need to configure your URLs in a slightly different way.