Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Add testsign.bat to easily self-sign binaries for Win2k8
- Loading branch information
Michael Brown
committed
Oct 22, 2009
1 parent
f62eb19
commit 56aa4a7
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
i386 | ||
amd64 | ||
testcer.cer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
|
||
if "%ddkdir%" == "" set ddkdir=C:\WinDDK\6001.18002 | ||
|
||
for /f "delims=" %%i in ('cd') do set cwd=%%i | ||
|
||
set setenv=%ddkdir%\bin\setenv.bat %ddkdir% chk wnet x64 | ||
set cert=%cwd%\bin\testcer.cer | ||
|
||
if not exist %cert% cmd /c "%setenv% && makecert -r -pe -ss PrivateCertStore -n CN=fensystems.co.uk %cert% && certmgr /add %cert% /s /r localMachine root && certmgr /add %cert% /s /r localMachine trustedpublisher" || exit /b 1 | ||
bcdedit -set TestSigning on || exit /b 1 | ||
bcdedit -set NoIntegrityChecks on || exit /b 1 | ||
|
||
cmd /c "%setenv% && signtool sign /s PrivateCertStore /n fensystems.co.uk /t http://timestamp.verisign.com/scripts/timestamp.dll %cwd%\bin\i386\*.sys %cwd%\bin\amd64\*.sys " || exit /b 1 |