Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Signing drivers under vista x64

Reply
Thread Tools Display Modes

Signing drivers under vista x64

 
 
Mathieu
Guest
Posts: n/a

 
      11-07-2009
Hello, When I signed my driver, it works. But Vista x64 refuses to
install this drivers with . Help - me!
Makecert -r -pe -ss PrivateCertStore -n "CN=TestCertforWDK" TestCert.cer
certmgr.exe -add testcert.cer -s -r localMachine root certmgr.exe -add
testcert.cer -s -r localMachine trustedpublisher SignTool sign /s
PrivateCertStore vdums.sys Signtool sign /s PrivateCertStore /t
http://timestamp.verisign.com/scripts/timestamp.dll vdums.sys
Signtool sign /s PrivateCertStore /n "CN=TestCertForWDK" /t http://times
tamp.verisign.com/scripts/timestamp.dll vdums.sys
SignTool Error: No certificates were found that met all the given criteria.
It's dont't work !! Why !!!
Thank you.


bool InstallDriver(char* pszDriverPath, char* pszDriverName) { SC_HANDLE
hSCManager; SC_HANDLE hService; //Remove any previous instance of the
driver RemoveDriver(pszDriverName); hSCManager=OpenSCManager(NULL, NULL,
SC_MANAGER_ALL_ACCESS); if (hSCManager) { //Install the driver
hService=CreateService( hSCManager, pszDriverName, pszDriverName,
SERVICE_ALL_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_AUTO_START,
SERVICE_ERROR_NORMAL, pszDriverPath, NULL, NULL, NULL, NULL, NULL);
CloseServiceHandle(hSCManager); if (hService==NULL) return FALSE; } else
return FALSE; CloseServiceHandle(hService); return TRUE; }

bool RemoveDriver(char* pszDriverName) { SC_HANDLE hSCManager; SC_HANDLE
hService; BOOL bResult; SetLastError(0); StopDriver(pszDriverName); int
err=GetLastError(); hSCManager=OpenSCManager(NULL, NULL,
SC_MANAGER_ALL_ACCESS); if (hSCManager) {
hService=OpenService(hSCManager, pszDriverName, SERVICE_ALL_ACCESS);
CloseServiceHandle(hSCManager); if (hService) {
bResult=DeleteService(hService); CloseServiceHandle(hService); } else
return FALSE; } else return FALSE; return bResult; }

bool StartDriver(char* pszDriverName) { SC_HANDLE hSCManager; SC_HANDLE
hService; BOOL bResult; hSCManager=OpenSCManager(NULL, NULL,
SC_MANAGER_ALL_ACCESS); if (hSCManager) {
hService=OpenService(hSCManager, pszDriverName, SERVICE_ALL_ACCESS);
CloseServiceHandle(hSCManager); if (hService) {
bResult=StartService(hService, 0, NULL); if (bResult==FALSE) { int
err=GetLastError(); if (err==ERROR_SERVICE_ALREADY_RUNNING)
bResult=TRUE; } CloseServiceHandle(hService); } else return FALSE; }
else return FALSE; return bResult; }


InstallDriver("c:\\sys\\vdums.sys","VDUMS")) { StartDriver("VDUMS");
hf=CreateFile(VDUM_CTL_DOSDEV_NAME, GENERIC_READ | GENERIC_WRITE, 0,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if
(hf==INVALID_HANDLE_VALUE) { printf("Driver invalid\n"); }
 
Reply With Quote
 
 
 
 
Tim Roberts
Guest
Posts: n/a

 
      11-08-2009
Mathieu <> wrote:
>
>Hello, When I signed my driver, it works. But Vista x64 refuses to
>install this drivers with . Help - me!


Actually, your question is not exactly correct, and the difference is very
important. Your driver is being INSTALLED, but it is not being LOADED.

In order for a driver to be LOADED on a 64-bit system, it has to be signed
with a genuine class 3 code signing certificate, issued from one of the
companys on Microsoft "cross-certificate list". You cannot use a
self-created certificate for this.

http://www.microsoft.com/whdc/winlog...crosscert.mspx
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
Mathieu
Guest
Posts: n/a

 
      11-08-2009
My OS Vista X64 is platform French

The signtool with "c:\sys\MSCV-VSClass3.cer" dont't work.

I want signed my driver vdums.

How i do ?????

Signtool sign /v /ac "c:\sys\MSCV-VSClass3.cer" /v /s Personnel /n
VDUMS /t http://timestamp.globalsign.com/scripts/timestamp.dll
"c:\sys\vdums.sys"
SignTool Error: File not found:

I also test :
Signtool sign /v /ac "c:\sys\MSCV-VSClass3.cer" /v /s my /n VDUMS /t
http://timestamp.globalsign.com/scripts/timestamp.dll "c:\sys\vdums.sys
SignTool Error: No certificates were found that met all the given criteria.

i return this error my os is plateform French

Tim Roberts a écrit :
> Mathieu <> wrote:
>> Hello, When I signed my driver, it works. But Vista x64 refuses to
>> install this drivers with . Help - me!

>
> Actually, your question is not exactly correct, and the difference is very
> important. Your driver is being INSTALLED, but it is not being LOADED.
>
> In order for a driver to be LOADED on a 64-bit system, it has to be signed
> with a genuine class 3 code signing certificate, issued from one of the
> companys on Microsoft "cross-certificate list". You cannot use a
> self-created certificate for this.
>
> http://www.microsoft.com/whdc/winlog...crosscert.mspx

 
Reply With Quote
 
Tim Roberts
Guest
Posts: n/a

 
      11-10-2009
Mathieu <> wrote:
>
>My OS Vista X64 is platform French
>
>The signtool with "c:\sys\MSCV-VSClass3.cer" dont't work.
>
>I want signed my driver vdums.
>
>How i do ?????


I believe you got a reply to this on [ntdev], right? The problem is you
need to buy a class 3 certificate, and I don't believe you've done that
yet.
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
Mathieu
Guest
Posts: n/a

 
      11-11-2009
Tim Roberts a écrit :
> Mathieu <> wrote:
>> My OS Vista X64 is platform French
>>
>> The signtool with "c:\sys\MSCV-VSClass3.cer" dont't work.
>>
>> I want signed my driver vdums.
>>
>> How i do ?????

>
> I believe you got a reply to this on [ntdev], right? The problem is you
> need to buy a class 3 certificate, and I don't believe you've done that
> yet.


OK i understand
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you repair windows entirely using your Windows Vista DVD Jonathan Yaniv- Windows Live Butterfly Expert Windows Vista Performance 16 02-12-2008 06:28 PM
dual boot xp and vista...with vista recovery dvd VS Windows Vista Installation 16 05-05-2007 11:05 AM
Upgrading drivers? Jerry Hughes Windows Vista Installation 14 02-16-2007 03:54 PM
acer awaiting ms green light for releasing vista drivers km Windows Vista Hardware 13 11-19-2006 01:55 AM
NVRAID install failure Jon Davis Windows Vista Installation 22 10-05-2006 09:46 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59