diff --git a/src-tauri/src/proxy.rs b/src-tauri/src/proxy.rs index f4bfc47..f30324a 100644 --- a/src-tauri/src/proxy.rs +++ b/src-tauri/src/proxy.rs @@ -204,7 +204,7 @@ pub fn install_ca_files(path: &str) { if cfg!(target_os = "windows") { run_command(format!("certutil -addstore -f \"ROOT\" {}\\ca\\cert.crt", path).to_string()); } else { - run_command(format!("sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {}/ca/certificate.crt", path).to_string()); + run_command(format!("security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {}/ca/cert.crt", path).to_string()); } println!("Installed certificate.");