pip: cert failed, but curl works

前端 未结 4 2212
忘了有多久
忘了有多久 2020-11-30 01:01

We installed the our root cert on the client, and the https connection works for curl.

But if we try to use pip, it fails:

         


        
4条回答
  •  情书的邮戳
    2020-11-30 01:12

    My solution is downloading cacert.pem from http://curl.haxx.se/ca/cacert.pem and add the path for cacert.pem to ~/.pip/pip.conf as guettli suggested

    [global]
    cert = /path/to/cacert.pem
    

提交回复
热议问题