Add EMSDK_USE_CURL environment variable to force use of curl#1695
Add EMSDK_USE_CURL environment variable to force use of curl#1695sbc100 merged 1 commit intoemscripten-core:mainfrom
Conversation
|
Maybe we could add an FAQ entry about this? What platform are you using where you found this was needed? Window or linux? |
|
@sbc100 This was on Linux, Ubuntu 22.04 / 24.04 and Debian 13. All environments required trusting corporate CA for TLS connections. |
Are you saying the CA file that ships with python on Ubuntu 22.04 / 24.04 and Debian 13 is unable to connect to google cloud storage? That would seem strange to me. Is there something odd about the way you set it up? Or are you not using the default python install? |
|
Oh sorry I missed the "Corporate environments may force use of a custom CA" part. |
|
Seems sad/strange that python cannot be made to use system CA chain. |
|
Is there perhaps an FAQ entry for python/urllib about this that we can link to in our docs? |
|
Some googling tell ms that it may be enough to do set |
Yess, that is an option but there are 2 issues.
I'll find urllib docs and also update emsdk docs page 👍 |
|
SGTM. Thanks for the PR. |
|
hi @sbc100, Should I put this in the readme in this repo or the emscription docs website? (I am not sure where/how to update the docs website right now) |
|
I think perhaps it would be best as an FAQ entry in the emsdk repo. Maybe here https://github.com/emscripten-core/emsdk?tab=readme-ov-file#sdk-maintenance |
Corporate environments may force use of a custom CA.
emsdkuses urllib on all platforms and curl on macos. However, urllib does not have a single universal variable similar to the recently introducedNODE_USE_SYSTEM_CAin nodejs that can be set to make it use system CA rather than the included certificate store.There is an option to use custom CA with urllib by setting some environment variables but there are 2 problems with it.
It's easier to install curl and use that.