IdentityServer:根据验证过程,远程证书无效 [英] IdentityServer: The remote certificate is invalid according to the validation procedure

查看:225
本文介绍了IdentityServer:根据验证过程,远程证书无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用OWin和Thinktecture Identity Server设置SSO,但是我没有运气让SSL证书正常工作.至少我认为这是问题所在.当我在Visual Studio中时,一切正常,但如果尝试在计算机上使用IIS,则会出现错误根据验证过程,远程证书无效".我还尝试使用IIS,因为客户端将在Visual Studio中运行的实例视为令牌颁发机构,但仍然遇到相同的错误.有人对我在做什么错有任何想法吗?

I'm trying to setup SSO using OWin and Thinktecture Identity Server but I am not having any luck getting the SSL certificate to work. At least I think that's the problem. All works fine when I'm in visual studio, but if I try to use IIS on my machine it gives me the error "The remote certificate is invalid according to the validation procedure". I've also tried using IIS as the client treat the instance running in visual studio as the token authority but I still get the same error. Anyone have any ideas on what I'm doing wrong?

推荐答案

就我而言,我只是尝试研究示例(对于ID3v2),并在本地运行证书错误.由于有些样本甚至通过owin进行自我托管,我什至不知道它在哪里获得主机方面的证书?

In my case I was just trying to work through the samples (for ID3v2) and getting the cert errors running locally. Since some samples even do self hosting via owin I'm not even sure where it's getting the certs for host side??

无论如何,我的解决方法是将证书复制到受信任的根":

Anyway my fix was to copy the cert to the Trusted Root:

  1. Windows开始"按钮,运行MMC.EXE
  2. 文件,添加管理单元:证书
  3. 使用计算机帐户,本地计算机,确定
  4. 进入个人/证书"
  5. 右键单击"localhost",然后将其拖放到受信任的根..."上.
  6. 选择复制"

完成.享受.

这篇关于IdentityServer:根据验证过程,远程证书无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆