Hi
We have purchased a code signing certificate from GlobalSign.
There’s also a cross-certificate from Microsoft for GlobalSign,
I have imported both of them in my Windows 7 64. I sign my
driver, create a cat (Inf2cat) and sign this as well. However
another system with Windows 7 64 still won’t accept this to
install the driver (“…cannot verify the digital signature… Code 52”)
Sign the sys:
SignTool.exe sign /a /f company-certificate.pfx /p password /t http://timestamp.verisign.com/scripts/timestamp.dll /v “package\fre\amd64\e500v2.sys”
The following certificate was selected:
Issued to: Indel AG
Issued by: GlobalSign ObjectSign CA
Expires: Tue May 13 11:02:07 2014
SHA1 hash: 7D098B9AC13057B60FC2C7B8BCE92EEA1B6EECCB
Done Adding Additional Store
Successfully signed and timestamped: package\fre\amd64\e500v2.sys
Number of files successfully Signed: 1
Number of warnings: 0
Number of errors: 0
Create catalog:
inf2cat.exe /driver:package\ /os:XP_X86,XP_X64,Vista_X86,Vista_X64,7_X86,7_X64 /v
Processing directory (package) file (e500v2.inf)
Processing directory (package) file (e500v2x64.cat)
Processing directory (package) file (e500v2x86.cat)
Processing directory (package\chk\amd64)file (e500v2.sys)
Processing directory (package\chk\i386) file (e500v2.sys)
Processing directory (package\fre\amd64)file (e500v2.sys)
Processing directory (package\fre\i386) file (e500v2.sys)
Parsing INF: package\e500v2.inf
Finished parsing INFs
Processing INF: package\e500v2.inf
Finished processing INFs
Testing driver package…
Testing driver package…
Testing driver package…
Testing driver package…
Testing driver package…
Testing driver package…
Signability test complete.
Errors:
None
Warnings:
None
Catalog generation complete.
package\e500v2x86.cat
package\e500v2x64.cat
Sign catalog:
SignTool.exe sign /a /n “Indel AG” /t http://timestamp.verisign.com/scripts/timestamp.dll /v “package\e500v2x86.cat”
The following certificate was selected:
Issued to: Indel AG
Issued by: GlobalSign ObjectSign CA
Expires: Tue May 13 11:02:07 2014
SHA1 hash: 7D098B9AC13057B60FC2C7B8BCE92EEA1B6EECCB
Done Adding Additional Store
Successfully signed and timestamped: package\e500v2x86.cat
Number of files successfully Signed: 1
Number of warnings: 0
Number of errors: 0
SignTool.exe sign /a /n “Indel AG” /t http://timestamp.verisign.com/scripts/timestamp.dll /v “package\e500v2x64.cat”
The following certificate was selected:
Issued to: Indel AG
Issued by: GlobalSign ObjectSign CA
Expires: Tue May 13 11:02:07 2014
SHA1 hash: 7D098B9AC13057B60FC2C7B8BCE92EEA1B6EECCB
Done Adding Additional Store
Successfully signed and timestamped: package\e500v2x64.cat
Number of files successfully Signed: 1
Number of warnings: 0
Number of errors: 0
Verify signature
SignTool.exe verify /kp “package\fre\amd64\e500v2.sys”
Verifying: package\fre\amd64\e500v2.sys
Hash of file (sha1): 55177D6A2E84689C9D671783D18CD02FA03BE971
Cross Certificate Chain:
Issued to: Microsoft Code Verification Root
Issued by: Microsoft Code Verification Root
Expires: Sat Nov 01 15:54:03 2025
SHA1 hash: 8FBE4D070EF8AB1BCCAF2A9D5CCAE7282A2C66B3
Issued to: GlobalSign Root CA
Issued by: Microsoft Code Verification Root
Expires: Mon May 23 19:10:51 2016
SHA1 hash: 3EEB2750A199F5E7B6A8952430BE5062FE04E9E5
Issued to: GlobalSign Primary Object Publishing CA
Issued by: GlobalSign Root CA
Expires: Fri Jan 27 14:00:00 2017
SHA1 hash: 549DF5E7102A223BA204B7150106D8EA17B7A70A
Issued to: GlobalSign ObjectSign CA
Issued by: GlobalSign Primary Object Publishing CA
Expires: Fri Jan 27 12:00:00 2017
SHA1 hash: 94BDB3CE4A5BC37A9A0BB45AFADB043932474F32
Issued to: Indel AG
Issued by: GlobalSign ObjectSign CA
Expires: Tue May 13 11:02:07 2014
SHA1 hash: 7D098B9AC13057B60FC2C7B8BCE92EEA1B6EECCB
Successfully verified: package\e500v2x64.cat
Number of files successfully Verified: 1
Number of warnings: 0
Number of errors: 0
Same output for verifying the catalog files (except for the hashes of course).
But the driver files still don’t show up in the catalog file
SignTool.exe verify /kp /c “package\e500v2x64.cat” /v “package\fre\amd64\e500v2.sys”
Verifying: package\fre\amd64\e500v2.sys
SignTool Error: File not found in the specified catalog.
SignTool Error: File not valid: package\fre\amd64\e500v2.sys
Number of files successfully Verified: 0
Number of warnings: 0
Number of errors: 1
What else do I have to do? I’m suspecting an error in the inf file or the creation
of the catalog. How can I check if the driver files are referenced from the catalog?
Is the relative path of the sys files important or only the file name?
The KMCS_Walkthrough.doc from Microsoft still talks about the old Vista DDK
with different tools (Signability).
Thanks
bye Fabi