我们在防火墙后面,对于 SSL 连接,他们会进行“中间人”攻击并重新签署所有证书。通过将自定义根证书添加到我的 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