Can I turn off Python (PiP) SSL cert validation with an ENV variable?
<p>I have a really bad network that uses a MITM cert to snoop on everyone's convos. This means I need to turn it off, for example, in node I use <code>export NODE_TLS_REJECT_UNAUTHORIZED="0"</code>.</p>

<p>Is there a similar way to do this in Python to get around this issue?</p>

<hr>

<p>Pretend I am security deficient (which I am). In my example for node I just configure an environmental variable and be done. This has me using a pem file (which I have no idea where to get). I tried downloading the cert chain but couldn't get it to a pem file. Is there really no more straight forward way to accomplish this? Honestly the way the network is set up I don't think I can even import just one cert.</p>

<hr>

<p>I tried using this...</p>

<pre><code>pip3 install itsdangerous --proxy=http://proxy.me.com:80 --index-url=http://pypi.python.org/simple/

Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: timed out
Will skip URL http://pypi.python.org/simple/ when looking for download links for itsdangerous
Cannot fetch index base URL http://pypi.python.org/simple/
</code></pre>

<p>Still confirming that this isn't a red herring thanks to our proxy.</p>

<hr>

<p>Also I've tried adding <code>HTTP_PROXY</code> and <code>HTTPS_PROXY</code> instead of the command line option. Still get the following result...</p>

<pre><code>  pip3 install itsdangerous --index-url=http://pypi.python.org/simple/
  ...
  Downloading/unpacking itsdangerous
  Getting page http://pypi.python.org/simple/itsdangerous/
  Could not fetch URL http://pypi.python.org/simple/itsdangerous/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
  Will skip URL http://pypi.python.org/simple/itsdangerous/ when looking for download links for itsdangerous
  Getting page http://pypi.python.org/simple/
  Could not fetch URL http://pypi.python.org/simple/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
</code></pre>

<p>Also might be important...</p>

<pre><code>pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
</code></pre>