具有IS4的Mac上的Dotnet 5返回无法建立SSL连接

编程入门 行业动态 更新时间:2024-10-28 06:34:27
本文介绍了具有IS4的Mac上的Dotnet 5返回无法建立SSL连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个包含3个项目,数据,API和IS4的应用.

I have an app with 3 project, Data, API, and IS4.

IS4在chrome上返回 ERR_CERT_AUTHORITY_INVALID ,我认为这是针对asp核心的mac版SSL漏洞.当我在野生动物园中打开时,它的工作正常,因此我继续尝试使用前端应用程序请求API资源.

IS4 returns ERR_CERT_AUTHORITY_INVALID on chrome, I figure this is the SSL bug that has been happening for mac for asp core. It works just fine when I opened on safari so I continue to try to use my front end app to request to the API resource.

但是,API资源在邮递员,野生动物园和Chrome浏览器上都拒绝了我

However, the API resource rejects me both at postman, safari, and chrome

它给了我这个

Content root path: /Users/src/API │ fail: Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[3] │ Exception occurred while processing message. │ System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'. │ ---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'System.String'. │ ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. │ ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot│ at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) │ at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean i│ sApm) │ at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, Cancellation│ Token cancellationToken) │ --- End of inner exception stack trace --- │ at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, Cancellation│ Token cancellationToken) │ at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) │ at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) │ at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) │

那是什么?我尝试了在Google上找到的大多数解决方案,此,此和此.即使执行以下两个命令,我也无法正常工作:

What is that? I tried most solutions I found on google, this, this, and this. I can't get it work even after these 2 commands:

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

谁能告诉我发生了什么事?我相信从 core 3.1升级之前不是这样的

Can anyone tell me what is happening? I believe it was not like this before upgrading from core 3.1

谢谢

推荐答案

遵循所有其他解决方案之后,唯一对我有用的解决方案是在Mac上完全重新安装dotnet

After following all other solution, the only one that worked for me was to completely reinstall dotnet on my mac

按照此步骤进行卸载,然后重新安装干净.

Follow this step to uninstall, then reinstall clean.

更多推荐

具有IS4的Mac上的Dotnet 5返回无法建立SSL连接

本文发布于:2023-11-15 04:47:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1591286.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Mac   SSL   Dotnet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!