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/create_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/create_command.zig')
-rw-r--r-- | src/cli/create_command.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli/create_command.zig b/src/cli/create_command.zig index b11a85b1e..5de433e24 100644 --- a/src/cli/create_command.zig +++ b/src/cli/create_command.zig @@ -1881,6 +1881,7 @@ pub const Example = struct { ); 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); @@ -1959,6 +1960,7 @@ pub const Example = struct { ); async_http.client.progress_node = progress; async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized(); + async_http.client.ca_store = env_loader.getTLSCAStore(); var response = try async_http.sendSync(true); @@ -2049,6 +2051,7 @@ pub const Example = struct { ); async_http.client.progress_node = progress; async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized(); + async_http.client.ca_store = env_loader.getTLSCAStore(); refresher.maybeRefresh(); @@ -2091,6 +2094,7 @@ pub const Example = struct { HTTP.FetchRedirect.follow, ); async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized(); + async_http.client.ca_store = env_loader.getTLSCAStore(); if (Output.enable_ansi_colors) { async_http.client.progress_node = progress_node; |