title: ASP.NET Core HttpClient can't make HTTPS calls in container
body: <p>I am in the process of migrating an API from Windows .NET Full Framework (4.6.1) to ASP.NET Core.</p>
  
  <p>I was able to spin up a container in our Rancher environment via the following Dockerfile:</p>
  
  <pre><code>root@a84db3bdc3cf:/app# cat Dockerfile
  FROM microsoft/aspnetcore:1.1
  ARG source=.
  WORKDIR /app
  EXPOSE 80
  COPY $source .
  ENTRYPOINT ["dotnet", "myapp.dll"]
  </code></pre>
  
  <p>I have noticed that anyone in my code that uses <code>HttpClient</code> that makes a call to a <code>HTTPS</code> url, the call fails.</p>
  
  <p>The <code>Message</code> in the <code>InnerException</code> reads:</p>
  
  <blockquote>
    <p>SSL connect error</p>
  </blockquote>
  
  <p>Has anyone seen this, and if so, do you know if there is some extra configuration required for the container to be able to do HTTP operations via HTTPS?  It seems to work fine with HTTP.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My application doesn't run over HTTPS.  It is hosted over HTTP.  The code in my application is trying to make a call to a remote API that is hosted over HTTPS, and has a valid certificate.</p>