Following are my steps using a self-signed cert.
Individual signs on binaries and CATS came out o.k
But sign check when CAT VS Driver failed.
PS: I have to sign teh driver also becuase it is 2k8/x64 driver.
Anyways not signing teh driver and repeating this steps also gives the same result.
Let me knwo if I missed again something.
- generate self signed cert?
Makecert -r -pe -ss mycer -n “CN=mycer” mycer.cer
2)Installed this cer on ths same machine
certmgr.exe -add mycer.cer -s -r localMachine root
certmgr.exe -add mycer.cer -s -r localMachine trustedpublisher
Invoked certmgr and checked mycer was listed in ROOT and Trustedpublisher CAs’.
-
generate my binaries
-
sign my binaries with above generated and installed cert
SignTool sign /s mycer /t http://timestamp.verisign.com/scripts/timestamp.dll mysys.sys
outpuut:
Done Adding Additional Store
Successfully signed and timestamped:mycer.sys
– Not sure why it is adding additional store ?
Anyways successfully signed and timed.
- generate catalogs
Inf2cat.exe /driver:. /os:Server2003_X86,Server2003_X64,Vista_X86,Vista_X64
IS THE ABOVE SYNTAX FOR /DRIVER O.K?
ALL MY .SYS, .INF ARE IN pwd.
** also THERE ARE OTHER FILES AND SUB-DIRS NOT REFERENCED BY THE INF’S IN THIS DIR ***
** THERE ARE MULTIPLE INF’S IN THIS DIR ALSO ***
- SIGN TEH cats too
SignTool sign /s mycer /t http://timestamp.verisign.com/scripts/timestamp.dll mycat.cat
Done Adding Additional Store
Successfully signed and timestamped: mycat.
-
verify signed driver - Went to file properties and says cert is o.k.
-
verify signed cats - Went to file properties and says cert is o.k.
-
verifying signed cats vs binaries
signtool verify /kp /v /c mycat.cat mysys.sys
Verifying: mysys.sys
File is signed in catalog: mycat.cat
SignTool Error: WinVerifyTrust returned error: 0x800B0109
****
A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
*****
>>>>>>>>>>>>
Above is the error
- I am using self-signed cert which is installed root and trustedpublisher CA’s.
- Not sure why there is a CA chain for my certificate above.
- I tried not doing time-stamp, got same error.
<<<<<<<<<<<<<<<
Signing Certificate Chain:
Issued to: mycer
Issued by: mycer
Expires: 12/31/2039 4:59:59 PM
SHA1 hash: D575A14F73C939CCD7547C6F6CD6B0B5DC1C6BD1
The signature is timestamped: 5/7/2008 5:34:12 PM
Timestamp Verified by:
Issued to: Thawte Timestamping CA
Issued by: Thawte Timestamping CA
Expires: 12/31/2020 4:59:59 PM
SHA1 hash: BE36A4562FB2EE05DBB3D32323ADF445084ED656
Issued to: VeriSign Time Stamping Services CA
Issued by: Thawte Timestamping CA
Expires: 12/3/2013 4:59:59 PM
SHA1 hash: F46AC0C6EFBB8C6A14F55F09E2D37DF4C0DE012D
Issued to: VeriSign Time Stamping Services Signer - G2
Issued by: VeriSign Time Stamping Services CA
Expires: 6/14/2012 4:59:59 PM
SHA1 hash: ADA8AAA643FF7DC38DD40FA4C97AD559FF4846DE
SignTool Error: File not valid: mysys.sys
Number of files successfully Verified: 0
Number of warnings: 0
Number of errors: 1
Will debug more.