diff --git a/lib/sign.js b/lib/sign.js index 8535085..9eda90f 100644 --- a/lib/sign.js +++ b/lib/sign.js @@ -83,7 +83,7 @@ function makeCert (parametersOrPublisherName, certFilePath, program) { const pk2pfx = path.join(program.windowsKit, 'pvk2pfx.exe') const pk2pfxArgs = ['-pvk', pvk, '-spc', cer, '-pfx', pfx] - const installPfxArgs = ['Import-PfxCertificate', '-FilePath', pfx, '-CertStoreLocation', '"Cert:\\LocalMachine\\TrustedPeople"'] + const installPfxArgs = ['Import-PfxCertificate', '-FilePath', `"${pfx}"`, '-CertStoreLocation', '"Cert:\\LocalMachine\\TrustedPeople"'] // Ensure the target directory exists fs.ensureDirSync(certFilePath)