Conda SSL error

I have some problems that Conda needs to respect my proxy declaration. Ive copied the proxy lines from the examples in the conda docs and replaced the urls with my own. Ive also exported HTTP_PROXY and HTTPS_PROXY with strings I know work. My ~ / .condarc file looks like this:

proxy_servers:
    http: http://<proxyaddress>:<port>
    https: https://<proxyaddress>:<port>

      

Any suggestions?

EDIT: conda version: 3.14.1

it looks like the proxy string is actually fine. The real problem, which didn't come up at first, is that conda doesn't use the ca-cert that I need because of our corporate proxy. The specific error when trying to install a package is this:

Error: Connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581): ...

      

+3


source to share


2 answers


I figured it out, so I thought I'd come back and let me know.

I'm not sure how to get conda to use a specific certificate, but conda uses requests for its web requests. You can inject a bundle of certificates into the request path by setting the REQUESTS_CA_BUNDLE environment variable.

so I ran:



export REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/<my-cert-name>

      

and now conda can go through our proxy!

+1


source


conda config --set ssl_verify false

      



+5


source







All Articles