【发布时间】:2016-02-24 13:45:35
【问题描述】:
我想使用 Thinktecture IdentityServer 3 向 ASP.NET 站点提供 STS,但我不知道如何设置证书。
如何使用 SelfHost(InMem with WS-Fed)Thinktecture Identity Server 3 作为本地 IIS 站点的 STS?
我遇到的问题如下:
我在 VS Development Server 中使用过这个客户端: https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/Clients/MvcOwinWsFederation
使用 SelfHost(InMem with WS-Fed): IdentityServer3.Samples/tree/master/source/SelfHost%20(InMem%20with%20WS-Fed)
一切正常、连接、验证和显示声明。
但是当我将客户端发布到名为 WSFedClient 的本地 IIS 站点并尝试针对同一个自托管 STS 进行身份验证时, 但我收到此错误:
"远程证书根据验证无效 程序。”
我遵循了这个: https://github.com/IdentityServer/IdentityServer3/issues/553
...但我仍然对我需要做什么感到困惑。
【问题讨论】:
-
更新了一点,如果需要更多请告诉我。你经常使用这个 Identity Server 吗?
-
一点也不……看起来这只是一个标准的证书问题;证书验证失败,可能是因为 CA 或根证书不在机器的受信任证书存储中。有意义吗?
-
我相信你是对的。不幸的是,这是我不明白的部分。我需要制作什么样的证书,如何制作,然后在哪里安装?
-
添加了一个答案——希望对您有所帮助。
标签: iis certificate thinktecture-ident-server identityserver3 thinktecture