dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.25k stars 1.58k forks source link

Support env vars SSL_CERT_FILE and SSL_CERT_DIR on linux #48506

Open jonasfj opened 2 years ago

jonasfj commented 2 years ago

As of https://github.com/dart-lang/sdk/commit/139db22be5f515b49270f6eae80ff7ecbfab1620 the Dart SDK certificate store being specified by --root-certs-file= and --root-certs-cache=. But this is not very convenient, perhaps we should consider supporting:

Like golang/src/crypto/x509/root_unix.go.

Also it seems golang:

Where as dart, seems to:

I don't know if that's a mistake, or intentional, or just me reading the golang code wrong :)

Also golang/src/crypto/x509/root_linux.go searches a lot more folders and files than the Dart SDK does.

a-siva commented 2 years ago

//cc @brianquinlan