• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@echo off
2
3set timeservers=(http://timestamp.globalsign.com/scripts/timestamp.dll http://timestamp.comodoca.com/authenticode http://timestamp.verisign.com/scripts/timestamp.dll http://tsa.starfieldtech.com)
4
5for %%s in %timeservers% do (
6    signtool sign /a /d "Node.js" /du "https://nodejs.org" /t %%s %1
7    if not ERRORLEVEL 1 (
8        echo Successfully signed %1 using timeserver %%s
9        exit /b 0
10    )
11    echo Signing %1 failed using %%s
12)
13
14echo Could not sign %1 using any available timeserver
15exit /b 1
16