首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IdentityServer 4和TLS1.2

IdentityServer 4和TLS1.2
EN

Stack Overflow用户
提问于 2018-07-18 00:00:59
回答 0查看 1.6K关注 0票数 2

我已经禁用了TLS 1.0和TLS 1.1。在Identity Server中(使用WebHostBuilder在服务结构群集中运行的v4,使用自签名证书以.NET 4.6.2为目标)。我在Startup.cs中添加了以下内容:

代码语言:javascript
复制
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

并且我收到以下错误:

代码语言:javascript
复制
System.InvalidOperationException: IDX10803: Unable to create to obtain 
configuration from: 'https://services.mytest.com:8443/oauth/.well- 
known/openid-configuration'. ---> System.IO.IOException: Unable to get 
document from: https://services.mytest.com:8443/oauth/.well- 
known/openid-configuration ---> System.Net.Http.HttpRequestException: An 
error occurred while sending the request. ---> System.Net.WebException: The 
underlying connection was closed: An unexpected error occurred on a receive. 
---> System.ComponentModel.Win32Exception: The client and server cannot 
communicate, because they do not possess a common algorithm

我看过这里的问题:

IDX10803: Unable to create to obtain configuration

Unable to obtain configuration from well-known/openid-configuration

我已经尝试过这些建议(包括将证书添加到受信任的根目录)

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51385821

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档