netcore 下載首次運行 報證書錯誤

信任Windows和macOS上的ASP.NET核心HTTPS開發證書

.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
相關文章
相關標籤/搜索