【问题标题】:Getting error "Failed trusting the certificate" while running my Blazor App in Visual Studio 2022在 Visual Studio 2022 中运行我的 Blazor 应用程序时出现错误“信任证书失败”
【发布时间】:2022-01-25 02:42:14
【问题描述】:

我安装了 Visual Studio 2022 并创建了一个 Blazor Web 程序集项目。当我启动应用程序时,Visual Studio 2022 提示信任 ASP.NET Core 生成的自签名证书。请参考以下屏幕截图:

点击“是”后,它会生成错误“信任证书失败”,如下图所示:

请帮我修复错误。我也尝试过以下命令,但它没有解决我的问题:

dotnet dev-certs https --trust

注意:Visual Studio 2019 也安装在我的机器上,即目前我的机器上同时安装了 VS2019 和 VS2022。

【问题讨论】:

  • 您是否拥有有效的自签名证书?运行 'dotnet dev-certs https -c' plz
  • 问题中已经提到了。
  • 我有这个并且清洁证书帮助了我:stackoverflow.com/a/70257639/1154773

标签: c# blazor visual-studio-2022


【解决方案1】:

解决此问题似乎与已发布的类似问题相同: Visual Studio 2017 gives 'Adding the Certificate to The Trusted Root Certificates store failed with the following Errror'

我建议将 localhost 证书添加到 Trusted Rood 证书。

【讨论】:

    猜你喜欢
    • 2021-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-04
    • 1970-01-01
    • 1970-01-01
    • 2021-12-16
    • 2015-12-09
    相关资源
    最近更新 更多