aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands.rs')
-rw-r--r--crates/mozart/src/commands.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/mozart/src/commands.rs b/crates/mozart/src/commands.rs
index c648754..504e38d 100644
--- a/crates/mozart/src/commands.rs
+++ b/crates/mozart/src/commands.rs
@@ -254,6 +254,12 @@ pub async fn execute(cli: &Cli) -> anyhow::Result<()> {
cli.no_ansi,
cli.no_interaction,
);
+
+ // Initialize HTTPS root certificates from `config.cafile` / `config.capath`
+ // before any command makes a network request.
+ let tls_opts = config_helpers::load_tls_options(cli);
+ mozart_core::http::init_tls_options(&tls_opts)?;
+
let command = cli.command.as_ref().expect("command must be set");
match command {
Commands::About(args) => about::execute(args, cli, &console).await,