Skip to content

Commit

Permalink
fix: wrap NSS db dir paths with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Apr 28, 2017
1 parent f6a6f3f commit 69be0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/root-authority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ async function addCertificateToNSSCertDB(nssDirGlob: string, options: { installC
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 } -n devcert`);
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 } -n devcert`);
run(`${ certutilPath } -A -d "sql:${ potentialNSSDBDir }" -t 'C,,' -i ${ rootCertPath } -n devcert`);
}
});
}
Expand Down

0 comments on commit 69be0f7

Please sign in to comment.