From 5bc98746ed61b60fc76c670573ec94de7d454e1c Mon Sep 17 00:00:00 2001 From: Dave Wasmer Date: Thu, 27 Apr 2017 16:45:04 -0600 Subject: [PATCH] fix: add required nickname arg to certutil command --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1a3c314..ec535d2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -195,10 +195,10 @@ function addCertificateToNSSCertDB(nssDirGlob: string, installCertutil: boolean) debug(`checking to see if ${ potentialNSSDBDir } is a valid NSS database directory`); if (existsSync(path.join(potentialNSSDBDir, 'cert8.db'))) { debug(`Found legacy NSS database in ${ potentialNSSDBDir }, adding devcert ...`) - run(`${ certutilPath } -A -d ${ potentialNSSDBDir } -t 'C,,' -i ${ rootCertPath }`); + run(`${ certutilPath } -A -d ${ potentialNSSDBDir } -t 'C,,' -i ${ rootCertPath } -n devcert`); } else if (existsSync(path.join(potentialNSSDBDir, 'cert9.db'))) { debug(`Found modern NSS database in ${ potentialNSSDBDir }, adding devcert ...`) - run(`${ certutilPath } -A -d sql:${ potentialNSSDBDir } -t 'C,,' -i ${ rootCertPath }`); + run(`${ certutilPath } -A -d sql:${ potentialNSSDBDir } -t 'C,,' -i ${ rootCertPath } -n devcert`); } }); }