function addCertificateToNSSCertDB(nssDirGlob, certPath, certutilPath) {
    debug(`trying to install certificate into NSS databases in ${nssDirGlob}`);
    doForNSSCertDB(nssDirGlob, (dir, version) => {
        const dirArg = version === 'modern' ? `sql:${dir}` : dir;
        utils_1.run(certutilPath, ['-A', '-d', dirArg, '-t', 'C,,', '-i', certPath, '-n', 'devcert']);
    });
    debug(`finished scanning & installing certificate in NSS databases in ${nssDirGlob}`);
}
/**
 *  Given a directory or glob pattern of directories, attempt to install the
 *  CA certificate to each directory containing an NSS database.
 */
Given a directory or glob pattern of directories, attempt to install the
CA certificate to each directory containing an NSS database.
Given a directory or glob pattern of directories attempt to install the CA certificate to each directory containing an NSS database .
function addCertificateToNSSCertDB(nssDirGlob, certPath, certutilPath) {
    debug(`trying to install certificate into NSS databases in ${nssDirGlob}`);
    doForNSSCertDB(nssDirGlob, (dir, version) => {
        const dirArg = version === 'modern' ? `sql:${dir}` : dir;
        utils_1.run(certutilPath, ['-A', '-d', dirArg, '-t', 'C,,', '-i', certPath, '-n', 'devcert']);
    });
    debug(`finished scanning & installing certificate in NSS databases in ${nssDirGlob}`);
}
function addCertificateToNSSCertDB ( nssDirGlob , certPath , certutilPath ) { debug ( ` ${ nssDirGlob } ` ) ; doForNSSCertDB ( nssDirGlob , ( dir , version ) => { const dirArg = version === 'modern' ? ` ${ dir } ` : dir ; utils_1 . run ( certutilPath , [ '-A' , '-d' , dirArg , '-t' , 'C,,' , '-i' , certPath , '-n' , 'devcert' ] ) ; } ) ; debug ( ` ${ nssDirGlob } ` ) ; }
Given a directory or glob pattern of directories, attempt to install the
  CA certificate to each directory containing an NSS database.
Given a directory or glob pattern of directories attempt to install the CA certificate to each directory containing an NSS database .