How to use HTTPS / SSL with Kestrel in ASP.NET Core 2.x?

前端 未结 2 1612
情话喂你
情话喂你 2020-12-07 15:37

I am currently using ASP.NET Core 2.x and I used to be able to get Kestrel to to use HTTPS / SSL by simply putting it in the UseUrls() method like so:



        
2条回答
  •  感动是毒
    2020-12-07 16:17

    You don't need to implement https with kestrel by itself. If you are running an application that requires https, it is most likely going to face outward to the internet. This means you need to run kestrel behind nginx or Apache and have one of those handle the https request for you.

提交回复
热议问题