如何让PiP使用正确的SSL根CA.

时间:2013-08-16 12:08:52

标签: python ssl ssl-certificate pip firewall

我们在防火墙后面,对于SSL连接,他们做了“中间人”攻击并重新签署所有证书。我已经在我的机器上修复了这个问题,方法是将自定义root-certificate添加到我的ca-setup中,并添加到我的浏览器中。 PiP似乎并不尊重这一点。如何在PiP中禁用SSL检查或使其尊重我的CA列表?

这是输出:

Downloading/unpacking pyaml
  Could not fetch URL https://pypi.python.org/simple/pyaml/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/pyaml/ when looking for download links for pyaml
  Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/ when looking for download links for pyaml
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/pyaml/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/pyaml/ when looking for download links for pyaml
  Could not find any downloads that satisfy the requirement pyaml
No distributions at all found for pyaml
Storing complete log in /home/user/.pip/pip.log

0 个答案:

没有答案