title: pip.conf not paying attention to trusted-host
body: <p>I have my <code>pip.conf</code> file as follows:</p>
  
  <pre><code>[global]
  trusted-host = &lt;private IP&gt;
  extra-index-url = http://&lt;private IP&gt;/pypi
  </code></pre>
  
  <p>However, whenever I try to install a package (just a test package) from the private pypi repo, I receive an error that instructs me to add <code>--trusted-host &lt;private IP&gt;</code>.  If I do, I can successfully install the package, so I know that <code>pip</code> is reading the <code>pip.conf</code> file.  Why isn't it respecting the <code>trusted-host</code> config?  I've triple checked that the IPs match in the config file.</p>
  
  <p>Several blogs and cursory searches of Google seem to suggest that it should.  (<a href="https://pseudoscripter.wordpress.com/2016/05/07/pip-the-repository-located-at-some-ip-is-not-a-trusted-or-secure-host-and-is-being-ignored/" rel="noreferrer">https://pseudoscripter.wordpress.com/2016/05/07/pip-the-repository-located-at-some-ip-is-not-a-trusted-or-secure-host-and-is-being-ignored/</a>)</p>