Skip to content

Commit

Permalink
Update timestamp server to Digicert
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustín Morelle committed Feb 2, 2021
1 parent 722be24 commit e5e0a43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async function signWithSigntool(fileName) {
async function trySignFile(fileName) {
console.log(`Signing ${fileName}.`);
const extension = path_1.default.extname(fileName);
for (let i = 10; i < 20; i++) {
for (let i = 0; i < 10; i++) {
if (signtoolFileExtensions.includes(extension)) {
if (await signWithSigntool(fileName))
return;
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { env } from 'process';
const asyncExec = util.promisify(exec);
const certificateFileName = env['TEMP'] + '\\certificate.pfx';

const timestampUrl = 'http://timestamp.globalsign.com/scripts/timstamp.dll';
const timestampUrl = 'http://timestamp.digicert.com';
const signtool = 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe';

const signtoolFileExtensions = [
Expand Down Expand Up @@ -88,7 +88,7 @@ async function signWithSigntool(fileName: string) {
async function trySignFile(fileName: string) {
console.log(`Signing ${fileName}.`);
const extension = path.extname(fileName);
for (let i=10; i< 20; i++) {
for (let i=0; i< 10; i++) {
if (signtoolFileExtensions.includes(extension)) {
if (await signWithSigntool(fileName))
return;
Expand Down

0 comments on commit e5e0a43

Please sign in to comment.