Skip to content

Commit 58f5a25

Browse files
committed
Add curl-specific certificate trust env var
This isn't necessary in many curl installs, but does matter in some cases, notably including the curlimages/curl official Docker image.
1 parent f09f031 commit 58f5a25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/terminal/terminal-env-overrides.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export function getTerminalEnvVars(
9191
'GIT_SSL_CAINFO': httpsConfig.certPath,
9292
// Trust cert in Rust's Cargo:
9393
'CARGO_HTTP_CAINFO': httpsConfig.certPath,
94+
// Trust cert in CURL (only required when not using OpenSSL):
95+
'CURL_CA_BUNDLE': httpsConfig.certPath,
9496

9597
// Flag used by subprocesses to check they're running in an intercepted env
9698
'HTTP_TOOLKIT_ACTIVE': 'true',

0 commit comments

Comments
 (0)