【问题标题】:identityserver4 the remote certificate is invalid because of errors in the certificate chain: untrustedrootidentityserver4 由于证书链中的错误,远程证书无效:untrustedroot
【发布时间】:2021-05-20 14:29:26
【问题描述】:

我在 HTTPS 下使用 IIS 服务器托管我的 IdentityServer、Web API 和 MVC 客户端应用程序。当我运行我的 MVC 客户端时,我收到以下错误(注意 - 6009 是我的 MVC 客户端的端口,6005 是我的 IdentityServer 的端口):

当我在 IIS 中配置所有项目时,我正在为所有项目使用 IIS Express 开发证书:

我将证书从个人存储复制到受信任的根目录,如下所示:

这是证书的详细信息:

我还缺少什么?

【问题讨论】:

  • 你可以参考official link,试试里面的命令,如果还是不行,你可以参考link
  • 感谢游依依。 “dotnet dev-certs https --trust”命令对我有用。
  • 您好,我已将我的评论更改为答案,如果有帮助,您可以接受它作为答案吗?谢谢。
  • 当然,我很乐意这样做。再次感谢尤依依!

标签: asp.net-core-mvc ssl-certificate identityserver4


【解决方案1】:

您可以参考official link,并尝试其中的命令。

dotnet dev-certs https --clean
dotnet dev-certs https --trust

【讨论】:

    猜你喜欢
    • 2021-08-06
    • 2022-01-12
    • 2022-10-19
    • 2023-01-25
    • 1970-01-01
    • 2019-01-30
    • 2016-12-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多