From c20e05aed8693e7b3b00771ec33700658f276936 Mon Sep 17 00:00:00 2001 From: Shicosoft Date: Wed, 15 May 2024 15:58:51 +0300 Subject: [PATCH] =chore: add support to macOS --- src/keys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keys.ts b/src/keys.ts index ded032b..a3dfe30 100644 --- a/src/keys.ts +++ b/src/keys.ts @@ -234,7 +234,7 @@ export async function addCertToSystemTrustStoreAndSaveCerts( if (platform === 'darwin') // macOS - await runCommand(`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ${certPath}`) + await runCommand(`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ${CAcertPath}`) else if (platform === 'win32') // Windows