.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