.NET Core SDK包含HTTPS开发证书。证书做为首次运行体验的一部分安装。例如,dotnet --info
生成相似于如下内容的输出:工具
ASP.NET Core ------------ Successfully installed the ASP.NET Core HTTPS Development Certificate. To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). For establishing trust on other platforms refer to the platform specific documentation. For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
安装.NET Core SDK会将ASP.NET Core HTTPS开发证书安装到本地用户证书存储区。证书已安装,但不受信任。要信任证书,请执行一次性步骤以运行dotnet dev-certs
工具:spa
dotnet dev-certs https --trust
如下命令提供有关该dev-certs
工具的帮助:code
dotnet dev-certs https --help