Navigation Menu

Skip to content

Commit

Permalink
[build] Add testsign.bat to easily self-sign binaries for Win2k8
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Oct 22, 2009
1 parent f62eb19 commit 56aa4a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/.gitignore
@@ -1,2 +1,3 @@
i386
amd64
testcer.cer
14 changes: 14 additions & 0 deletions testsign.bat
@@ -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

0 comments on commit 56aa4a7

Please sign in to comment.