I have an app with 3 project, Data, API, and IS4.
IS4 returns ERR_CERT_AUTHORITY_INVALID
on chrome, I figure this is the SSL bug that has been happening for mac for asp.net 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.
However, the API resource rejects me both at postman, safari, and chrome
It gave me this:
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) │
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
Can anyone tell me what is happening? I believe it was not like this before upgrading from .net core 3.1
Thanks