ssl自签名证书
Last week on Twitter @getify started an excellent thread pointing out that we should be using HTTPS even on our local machines. Why?
上周在Twitter上, @ getify启动了一个出色的线程,指出即使在本地计算机上也应使用HTTPS。 为什么?
You want your local web development set up to reflect your production reality as much as possible. URL parsing, routing, redirects, avoiding mixed-content warnings, etc. It's very easy to accidentally find oneself on http:// when everything in 2018 should be under https://.
您希望设置本地Web开发以尽可能反映您的生产实际情况。 URL解析,路由,重定向,避免混合内容警告等。当2018年的所有内容都应位于https://下时,很容易在http://上偶然发现自己。
I'm using ASP.NET Core 2.1 which makes local SSL super easy. After installing from http://dot.net I'll "dotnet new razor" in an empty folder to make a quick web app.
我正在使用ASP.NET Core 2.1,它使本地SSL超级简单。 从http://dot.net安装后,我将在一个空文件夹中“ dotnet new razor”来制作一个快速的Web应用程序。
Then, when I "dotnet run" I see two URLs serving pages:
然后,