I am developing a Web Application with Microservice Architecture. I use docker and docker-compose to run my microservices. I want to access an api from the frontend service. But it always throws SSL certificate exception, whichs tell me that the issuer is not verified from curl. I get this error from the HttpClient in my demo MVC app: "The remote certificate is invalid according to the validation procedure."
I created a demo project for testing it, here is the github link: https://github.com/KriszW/AccessDockerContainersFromEachOtherDemo
I know the problem is within the container. Because i tested it with curl, and when i specified the --insecure attribute it worked. So i know that something is bad with the ssl certificates in my containers.
I know that i do not have any problem with the APIs, because i run them in kestral and they worked fine as well.
Something is bad with the docker containers, or images.
Thanks for your help in advance guys i realy dont know what to do now, and how to solve it.
I use the latest .Net Core 3.1 for my Web APIs and MVC app as well.
when i specified the --insecure attribute it worked.
that's because the certificate is invalid and all clients will complain unless you tell them to either ignore it, or trust it – Panagiotis Kanavos