Mar 10, 2008

How to self sign 64 bit driver on Vista 64 for driver testing

1.install Microsoft Winqual Submission Tool
2.Find Inf2Cat.exe in Microsoft Winqual Submission Tool
3.execute
Inf2Cat.exe /driver:"U:\MyDriver" /os:Vista_X64

4.Find makecert.exe in WDK
Makecert -r -pe -ss PrivateCertStore -n "CN=TestCertforWDK" TestCert.cer

5.Use Signtool.exe in WDK to sign the cat file
Signtool sign /v /s PrivateCertStore /n TestCertForWDK /t http://timestamp.verisign.com/scripts/timestamp.dll "U:\MyDriver\MyDriver.cat"

6.Use Signtool.exe in WDK to sign the driver
Signtool sign /v /s PrivateCertStore /n TestCertForWDK /t http://timestamp.verisign.com/scripts/timestamp.dll "U:\MyDriver\MyDriver.sys"

7.Verify the sign for driver
Signtool verify /pa /v MyDriver.sys

8.Verify the sign for cat file
Signtool verify /pa /v /c MyDriver.cat MyDriver.inf

9.On test computer, import the certificate:
certmgr.exe /add TestCert.cer /s /r localMachine root
certmgr.exe /add TestCert.cer /s /r localMachine trustedpublisher

reference: Kernel-Mode Code Signing Walkthrough

0 comments:

 
TEMPLATE HACKS AND TWEAKS BY [ METAMUSE ] BLACKCAT 1.1
/scripts/shBrushJScript.js'/>