title: local issuer certificate error uniquely in docker with python
body: <p>Following error occurs only with docker app in python when making request to an https url.</p>
  <p><code>&lt;urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&gt;</code></p>
  <p>Outside of docker, the app works. I can fetch the same URL inside the docker image of other language app such as dotnet.</p>
  <p>I have tried:</p>
  <ol>
  <li><code>RUN update-ca-certificates</code></li>
  <li>Install <code>certfi</code> library and manually supply the certificates during making the call</li>
  <li>Manually insert the certificates that comes with <code>certify</code> library in different locations of docker images such as <code>/usr/local/share/ca-certificates/</code>, <code>/etc/ssl/certs/</code> and <code>RUN update-ca-certificates</code></li>
  <li>Tried different versions (<code>3.6.9</code>, <code>3.8.4</code>) and providers (<code>alpine</code>, <code>buster</code>, <code>slim-buster</code> ) of python.</li>
  <li>Setting different env variables such as <code>REQUESTS_CA_BUNDLE</code>, <code>SSL_CERT_FILE</code> etc.</li>
  <li>Use different libraries such as <code>requests</code>, <code>urllib</code>, <code>urllib3</code></li>
  </ol>
  <p>.... and really large number of different things.</p>
  <p>It of course works when I turn the verify off, but I want to keep verification.</p>