forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added SSL info, cleaned up some pages
- Loading branch information
Showing
5 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ Configuration | |
pip-interoperability | ||
use-winxp-with-proxy | ||
disable-ssl-verification | ||
non-standard-certs |
29 changes: 29 additions & 0 deletions
29
docs/source/user-guide/configuration/non-standard-certs.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
=============================== | ||
Using non-standard certificates | ||
=============================== | ||
|
||
Using conda behind a firewall may require using a non-standard | ||
set of certificates, which requires custom settings. | ||
|
||
If you are using a non-standard set of certificates, then the | ||
requests package requires the setting of ``REQUESTS_CA_BUNDLE``. | ||
If you receive an error with self-signed certifications, you may | ||
consider unsetting ``REQUESTS_CA_BUNDLE`` and `disabling SSL verification <https://conda.io/projects/conda/en/latest/user-guide/configuration/disable-ssl-verification.html>`_ | ||
to create a conda environment over HTTP. | ||
|
||
You may need to set the conda environment to use the root certificate | ||
provided by your company rather than conda’s generic ones. | ||
|
||
One workflow to resolve this on MacOS is: | ||
|
||
* Open Chrome, got to any website, click on the lock icon on the left | ||
of the URL. Click on «Certificate» on the dropdown. In the next window | ||
you see a stack of certificates. The uppermost (aka top line in window) | ||
is the root certificate (e.g. Zscaler Root CA). | ||
* Open MacOS keychain, click on «Certificates» and choose among the | ||
many certificates the root certificate that you just identified. | ||
Export this to any folder of your choosing. | ||
* Convert this certificate with OpenSSL: ``openssl x509 -inform der -in /path/to/your/certificate.cer -out /path/to/converted/certificate.pem`` | ||
* For a quick check set your shell to acknowledge the certificate: ``export REQUESTS_CA_BUNDLE=/path/to/converted/certificate.pem`` | ||
* To set this permanently, open your shell profile (.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. |