From 842404f1f2bd7bc7ac981344870d5fc0193421a8 Mon Sep 17 00:00:00 2001 From: Dave Wasmer Date: Thu, 27 Apr 2017 21:51:30 -0600 Subject: [PATCH] fix: add -d flag to security command, not sure why it ignores -p otherwise, but oh well --- src/root-authority.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root-authority.ts b/src/root-authority.ts index c7d153b..78a48a1 100644 --- a/src/root-authority.ts +++ b/src/root-authority.ts @@ -73,7 +73,7 @@ function generateOpenSSLConfFiles() { async function addToMacTrustStores(installCertutil: boolean): Promise { // Chrome, Safari, system utils debug('adding devcert root CA to macOS system keychain'); - run(`sudo security add-trusted-cert -r trustRoot -k /Library/Keychains/System.keychain -p ssl "${ rootCertPath }"`); + run(`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain -p ssl -p basic "${ rootCertPath }"`); // Firefox try { // Try to use certutil to install the cert automatically