forked from conda-forge/openssl-feedstock
-
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.
Set the SSL_CERT_FILE environment variables via an activation script …
…on Windows to make sure Python can do HTTPS requests by default without requiring certifi.
- Loading branch information
1 parent
67f77d1
commit 2fa0139
Showing
6 changed files
with
31 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if "%SSL_CERT_FILE%"=="" ( | ||
set SSL_CERT_FILE="%LIBRARY_PREFIX%\ssl\cacert.pem" | ||
set __CONDA_OPENSLL_CERT_FILE_SET="1" | ||
) |
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,4 @@ | ||
if [[ "$SSL_CERT_FILE" == "" ]]; then | ||
export SSL_CERT_FILE="${LIBRARY_PREFIX}\\ssl\\cacert.pem" | ||
export __CONDA_OPENSLL_CERT_FILE_SET="1" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if "%__CONDA_OPENSLL_CERT_FILE_SET%" == "1" ( | ||
set SSL_CERT_FILE= | ||
set __CONDA_OPENSLL_CERT_FILE_SET= | ||
) |
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,4 @@ | ||
if [[ "$__CONDA_OPENSLL_CERT_FILE_SET" == "1" ]]; then | ||
unset SSL_CERT_FILE | ||
unset | ||
fi |
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