Hello,
We have a minifilter driver that is working in 32 bit os,but not working in
64 bit os(XP,Vista,Windows 7),
How do we sign drivers for XP,VISTA and WINDOWS 7 in 64 bit edition?
What we are doing now to sign driver/minifilter is:
we tried to sign driver using selfsign_example.cmd in
C:\WinDDK\6001.18001\bin\SelfSign folder. and try following set of commands:
-
make TestCert.cer using following command
Makecert -r -pe -ss PrivateCertStore -n "CN=TestCertforWDK" TestCert.cer -
create a CAT file for driver package from inf file
inf2cat.exe /driver:d:\testcert /os:Vista_x86,Vista_X64,XP_X64 -
sign cat file using
SignTool sign /s PrivateCertStore d:\testcert\klfm.cat -
sign .sys file using
SignTool sign /s PrivateCertStore d:\testcert\klfm.sys -
install certificate in proper location
certmgr.exe -add %CERTDIR%\testcert.cer -s -r localMachine root
certmgr.exe -add %CERTDIR%\testcert.cer -s -r localMachine
trustedpublisher
Problms we are facing:
try to load driver in XP 64 bit system using fltmc load command it failed
with following error:
Load failed with error: 0x800704fb
This driver has been blocked from loading
and in WINDOWS 7 64 bit system
Load failed with error: 0x80070241
Windows cannot verify the digital signature for this file. A recent hardware
or software change
might have installed a file that is signed incorrectly or damaged, or that
might be malicious
software from an unknown source.
Second way of signing driver/minifilter is:
also tried with batch file given in
http://www.osronline.com/showThread.cfm?link=143925
it gives following output and certutil.exe is failed
Problms we are facing in Second way:
STARTED ...
IMPORTING CERTIFICATE ...
"C:\WINDDK\6001.18001\bin\SelfSign\certutil.exe" -user -p "1234" -importPFX
C:\certificateNew\MyCert.pfx
402.203.0: 0x80070057 (WIN32: 87): ..CertCli Version
313.3409.0: 0x80070056 (WIN32: 86)
313.3471.0: 0x80070056 (WIN32: 86)
CertUtil: -importPFX command FAILED: 0x80070056 (WIN32: 86)
CertUtil: The specified network password is not correct.
301.3128.0: 0x80070056 (WIN32: 86)
SIGNING EXECUTABLE ...
"C:\WINDDK\6001.18001\bin\SelfSign\signtool.exe" sign /v /ac
C:\certificateNew\MyCert.cer /s my /n "CN Value" /t
http://timestamp.verisign.com/scripts/timestamp.dllC:\certificateNew\KLFM.sys
SignTool Error: No certificates were found that met all the given criteria.
Number of files successfully Signed: 0
Number of warnings: 0
Number of errors: 1
FAILURE 
please help