diff options
author | 2023-10-22 15:11:51 -0700 | |
---|---|---|
committer | 2023-10-23 13:11:11 -0700 | |
commit | 1328d2324f6d3b2a5bd856c078df997c8ff4829d (patch) | |
tree | 595562262f06b5fe40d2ad7c4b9df00e623ab132 /src/cli/upgrade_command.zig | |
parent | f7f2e978a153f681bdc1f1b3939aa6e76498a9d7 (diff) | |
download | bun-ansg191/system-store.tar.gz bun-ansg191/system-store.tar.zst bun-ansg191/system-store.zip |
Adds BUN_TLS_CA_STORE env var to select CA storeansg191/system-store
BUN_TLS_CA_STORE is a comma seperated list of CA store sources for bun
to retrieve certificates from. The options are currently `mozilla` for
embedded Mozilla certs & `system` for loading certs from the native
platform store. Defaults to `mozilla`.
Diffstat (limited to 'src/cli/upgrade_command.zig')
-rw-r--r-- | src/cli/upgrade_command.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli/upgrade_command.zig b/src/cli/upgrade_command.zig index d865d990d..78bab4500 100644 --- a/src/cli/upgrade_command.zig +++ b/src/cli/upgrade_command.zig @@ -244,6 +244,7 @@ pub const UpgradeCommand = struct { HTTP.FetchRedirect.follow, ); async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized(); + async_http.client.ca_store = env_loader.getTLSCAStore(); if (!silent) async_http.client.progress_node = progress; const response = try async_http.sendSync(true); @@ -491,6 +492,7 @@ pub const UpgradeCommand = struct { async_http.client.timeout = timeout; async_http.client.progress_node = progress; async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized(); + async_http.client.ca_store = env_loader.getTLSCAStore(); const response = try async_http.sendSync(true); |