Open erip opened 5 years ago
I was posting a lengthy reply about how I am facing the exact same issue on Windows, but in trying "everything" I have discovered a workaround for me that might be of assistance?
We previously set an environmental variable REQUESTS_CA_BUNDLE pointing to our certificate to allow for ssl verification.
However, recently that has been failing (giving same errors as you get), and same as your case, even when we set ssl_verify to false in the .condarc file.
However, I've just renamed / deleted the REQUESTS_CA_BUNDLE (_potentially SSL_CERT_DIR / SSL_CERTFILE) environment variable from my setup, and am now able to get responses through conda (_with sslverify false only).
I know this doesn't solve the ssl verification issue, but potentially gives you a workaround?
@emmet02 I've confirmed this works. After unsetting $REQUESTS_CA_BUNDLE
and disabling SSL verification, I can create a conda env over HTTP.
I faced the similar problem on Mac OS X and with Miniconda. After trying many things for hours I found that I needed to correctly set Condas environment to use the Root certificate that my company provided rather than the generic ones that Conda provides.
Here is how I solved it:
openssl x509 -inform der -in /path/to/your/certificate.cer -out /path/to/converted/certificate.pem
export REQUESTS_CA_BUNDLE=/path/to/converted/certificate.pem
.bshrs
or e.g. .zshrc
) and add this line: export REQUESTS_CA_BUNDLE=/path/to/converted/certificate.pem
. Now exit your terminal/shell and reopen. Check again. You should be set and Conda should work fine.
I am using Anaconda behind a firewall. My setup was fine until I recently patched my Mac (Security update 2018-002). After patching, I encountered SSL errors. I had set
ssl_verify
to the path of my corporate root cert, but was experiencing SSL errors. As a sanity check, I decided to disable ssl verification; to my surprise, I still ran into SSL errors:I have tried completely reinstalling anaconda, I have removed my system python3 installation, I've added and removed my proxy settings from my
~/.condarc
and I always encounter the same SSL errors. I've even appended our root cert to the certifi bundle. As a brute force measure, I appended our root cert to every file in~/anaconda3
which matchescacert*
and*.pem
.Interestingly, after appending the root cert to the certifi bundle, I see this:
I'm using conda 4.5.11 with OS X 10.13.6.