title: ASP.Net Core docker access serviceA container from serviceB container throws ssl certificate error
body: <p>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."</p>
  
  <p>I created a demo project for testing it, here is the github link:
  <a href="https://github.com/KriszW/AccessDockerContainersFromEachOtherDemo" rel="nofollow noreferrer">https://github.com/KriszW/AccessDockerContainersFromEachOtherDemo</a></p>
  
  <p>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.</p>
  
  <p>I know that i do not have any problem with the APIs, because i run them in kestral and they worked fine as well.</p>
  
  <p>Something is bad with the docker containers, or images.</p>
  
  <p>Thanks for your help in advance guys i realy dont know what to do now, and how to solve it.</p>
  
  <p>I use the latest .Net Core 3.1 for my Web APIs and MVC app as well.</p>