[ofw] [PATCH 4/4] etc/signwo: script to allow test signing of drivers

Sean Hefty sean.hefty at intel.com
Wed Nov 4 23:09:19 PST 2009


A couple of batch files to assist in adding a test certificate to a system
and signing all files.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
Index: etc/addcert.bat
===================================================================
--- etc/addcert.bat	(revision 0)
+++ etc/addcert.bat	(revision 0)
@@ -0,0 +1,2 @@
+makecert -$ individual -r -pe -ss WinOFCertStore -n CN=WinOFCert WinOFCert.cer
+certmgr /add WinOFCert.cer /s /r localMachine root
\ No newline at end of file
Index: etc/signall.bat
===================================================================
--- etc/signall.bat	(revision 0)
+++ etc/signall.bat	(revision 0)
@@ -0,0 +1,10 @@
+ at echo off
+setlocal
+
+for /f "usebackq" %%i in (`dir /AD /b`) do (
+	pushd %%i
+	call signwo
+	popd
+)
+
+ at echo on
\ No newline at end of file
Index: etc/signwo.bat
===================================================================
--- etc/signwo.bat	(revision 0)
+++ etc/signwo.bat	(revision 0)
@@ -0,0 +1,3 @@
+signtool.exe sign /v /s WinOFCertStore /n WinOFCert *.sys
+signtool.exe sign /v /s WinOFCertStore /n WinOFCert *.dll
+signtool.exe sign /v /s WinOFCertStore /n WinOFCert *.exe




More information about the ofw mailing list