我在 HTTPS 下使用 IIS 服务器托管我的 IdentityServer、Web API 和 MVC 客户端应用程序。当我运行我的 MVC 客户端时,我收到以下错误(注意 - 6009 是我的 MVC 客户端的端口,6005 是我的 IdentityServer 的端口):
当我在 IIS 中配置它们时,我正在为所有项目使用 IIS Express 开发证书:
我将证书从个人存储复制到受信任的根目录,如下所示:
这是证书的详细信息:
我还缺少什么?
答案 0 :(得分:6)
您可以参考official link,并尝试其中的命令。
dotnet dev-certs https --clean
dotnet dev-certs https --trust