我有一个包含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连接
发布评论