Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. Set outputfilename=output.bat
  2. Set inputfilename=list.txt
  3. if exist %outputfilename% del %outputfilename%
  4. REM -----
  5. REM set test parms
  6. REM -----
  7. set signspc=\"test.spc\"
  8. set signpvk=\"TestKey\"
  9. if exist %signspc% del %signspc%
  10. REM -----
  11. REM create and use test credentials
  12. REM -----
  13. makecert -u:TestKey -n:CN=TestCompany test.cer
  14. Cert2Spc test.cer test.spc
  15. REM -----
  16. REM create output.bat with the signcode statements
  17. REM -----
  18. exptext %inputfilename% %outputfilename% "signcode -spc %signspc% -pvk %signpvk% -prog" -name -info
  19. REM -----
  20. REM Turn ON the switch to ensure WinVerifyTrust can verify test roots
  21. REM -----
  22. setreg.exe 1 True
  23. pause "hit any key to continue..."
  24. REM -----
  25. REM Output.bat contains the signcode statements
  26. REM -----
  27. call output.bat
  28. pause "hit any key to continue..."
  29. REM -----
  30. REM run chktrust to ensure batch file worked
  31. REM leeg: note that this change assumes list.txt is properly filled in and formatted.
  32. REM -----
  33. awk -f check.awk < list.txt > check.bat
  34. call check.bat