identityserver4 由于证书链错误,远程证书无效:untrustedroot

时间:2021-02-17 16:48:21

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

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

enter image description here

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

enter image description here

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

enter image description here

这是证书的详细信息:

enter image description here

我还缺少什么?

1 个答案:

答案 0 :(得分:6)

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

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