I been trying to figure this out on my own for over a week now and tried so many different things but I have not yet got it working.
I have a linux server I am deploying my .Net Core Web API on, also I am deploying my .Net Core MVC UI on it as well.
They both get deployed successfully and when I use swagger on the API I can successfully reach and access the database.
When I use my UI I run a page to connect to the API I get
An unhandled exception occurred while processing the request. The remote certificate is invalid because of errors in the certificate chain partialchain
HttpRequestException: the SSL connection could not be established,
What I have tried:
I tried setting up my cookie to connect and be authorized to localhost:port# of API
I ran dotnet dev-certs https –clean
Dotnet dev-certs https –trust
And tried many other small things but all with the same result.
My end goal is to get this to work then to put the both in docker containers and have them connect to each other.
In docker containers I get an error im assuming its this same problem. I added ASPNETCORE_ENVIRONMENT: develp[ment to Docker in launchsettings.json thinking that would put it to dev mode in docker container but it didn’t so I don’t get stack trace in docker. But I just wanna figure out this ssl connection not be established.