Skip to content

Commit f3ac752

Browse files
committed
Make Rust's Cargo trust our certificate
Now you can intercept Cargo! Rust in general doesn't work yet in all cases, except where it observes some other config but step by step we get a little closer.
1 parent b331d54 commit f3ac752

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
@@ -47,6 +47,8 @@ export function getTerminalEnvVars(
4747
'PERL_LWP_SSL_CA_FILE': httpsConfig.certPath,
4848
// Trust cert for HTTPS requests from Git
4949
'GIT_SSL_CAINFO': httpsConfig.certPath,
50+
// Trust cert in Rust's Cargo:
51+
'CARGO_HTTP_CAINFO': httpsConfig.certPath,
5052

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

0 commit comments

Comments
 (0)