mirror of
https://github.com/expo/devcert.git
synced 2026-11-14 17:50:08 -10:00
fix: add required nickname arg to certutil command
This commit is contained in:
1 parent
7a046bb4d2
commit
5bc98746ed
1 file changed
+2
-2
+2
-2
@@ -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`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user