Driver signing problem

Hello,

I have a problem with my release signed driver. If I install it under a WinXP 32 (Version 5.1.2600) system the installation itself works but if I open the property tab it says that the driver is not signed. Even sigverif says that the driver is not signed.

But under a Win7 system (32 and 64) it works perfekt.

The .cat file itself shows that it is signed, either Win7 and WinXP:
30 2e 1e 04 00 4f 00 53 0…O.S
02 04 10 01 00 01 04 20 …
58 00 50 00 58 00 38 00 X.P.X.8.
36 00 2c 00 37 00 58 00 6.,.7.X.
38 00 36 00 2c 00 37 00 8.6.,.7.
58 00 36 00 34 00 00 00 X.6.4…

And OSAttr:
2:5.1,2:6.1

My inf file (I renamed some parts and subsituted some other parts with “…”):
[Version]
Signature=“$CHICAGO$”
Class=CompanySystem
ClassGUID={…}
Provider=%Provider%
DriverVer=03/02/2012,1.0.1.2
CatalogFile = netpcicatalogfile.cat

[Manufacturer]
%Manufacturer%=company, NTx86.5.1, NTx86.6.1, NTamd64.6.1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Install section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[DestinationDirs]
DefaultDestDir = 12;

;Class installation

[ClassInstall32]
AddReg = ClassInstall32_AddReg

[ClassInstall32_AddReg]
HKR,“Net PCI KMDF drivers”
HKR,Icon,101

;driver installation

;[company.ntamd64]
[company.NTx86.5.1]
%Product.DeviceDesc%=DriverInstall, PCI\VEN_10…

[company.NTx86.6.1]
%Product.DeviceDesc%=DriverInstall, PCI\VEN_10…

[company.NTamd64.6.1]
%Product.DeviceDesc%=DriverInstall, PCI\VEN_10…

[SourceDisksNames.x86]
1=%INST_DISK_NAME%,“I386”

[SourceDisksNames.amd64]
1=%INST_DISK_NAME%,“Amd64”

[SourceDisksFiles]
SiDaNetPCI.sys = 1

[DriverInstall]
CopyFiles = DriverCopyFiles

[DriverCopyFiles]
NetPCI.sys,2

[DriverInstall.Services]
AddService = NetPCI,2,DriverService

[DriverService]
DisplayName=…
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\NetPCI.sys

;CoInstaller installation

[DestinationDirs]
CoInstaller_CopyFiles = 11

[DriverInstall.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles = CoInstaller_CopyFiles

[CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000,“WdfCoInstaller01009.dll,WdfCoInstaller”

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll,2

[SourceDisksFiles]
wdfcoinstaller01009.dll=1

[DriverInstall.Wdf]
KmdfService = NetPCI, NetPCI_wdfsect

[NetPCI_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
Provider=…
Manufacturer=…
Product.DeviceDesc=…
INST_DISK_NAME=…

Directory structure:
…\Driver:
netpcicatalogfile.cat
NetPCI.sys
.\i368
.\amd64

…\Driver\i386:
NetPCI.sys
WdfCoInstaller01009.dll
WUDFUpdate_01009.dll

…\Driver\amd64:
NetPCI.sys
WdfCoInstaller01009.dll
WUDFUpdate_01009.dll

Can someone tell me what I am missing?

Regards,
Torben

IIRC, XP had a bug where it would only identify Microsoft signed packages as signed in the driver manager ui, so any other package which was properly signed from a pnp/install perspective would install OK, but the UI would show as not signed in device manager

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@conplement.de
Sent: Friday, March 02, 2012 4:31 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Driver signing problem

Hello,

I have a problem with my release signed driver. If I install it under a WinXP 32 (Version 5.1.2600) system the installation itself works but if I open the property tab it says that the driver is not signed. Even sigverif says that the driver is not signed.

But under a Win7 system (32 and 64) it works perfekt.

The .cat file itself shows that it is signed, either Win7 and WinXP:
30 2e 1e 04 00 4f 00 53 0…O.S
02 04 10 01 00 01 04 20 …
58 00 50 00 58 00 38 00 X.P.X.8.
36 00 2c 00 37 00 58 00 6.,.7.X.
38 00 36 00 2c 00 37 00 8.6.,.7.
58 00 36 00 34 00 00 00 X.6.4…

And OSAttr:
2:5.1,2:6.1

My inf file (I renamed some parts and subsituted some other parts with “…”):
[Version]
Signature=“$CHICAGO$”
Class=CompanySystem
ClassGUID={…}
Provider=%Provider%
DriverVer=03/02/2012,1.0.1.2
CatalogFile = netpcicatalogfile.cat

[Manufacturer]
%Manufacturer%=company, NTx86.5.1, NTx86.6.1, NTamd64.6.1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Install section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[DestinationDirs]
DefaultDestDir = 12;

;Class installation

[ClassInstall32]
AddReg = ClassInstall32_AddReg

[ClassInstall32_AddReg]
HKR,“Net PCI KMDF drivers”
HKR,Icon,101

;driver installation

;[company.ntamd64]
[company.NTx86.5.1]
%Product.DeviceDesc%=DriverInstall, PCI\VEN_10…

[company.NTx86.6.1]
%Product.DeviceDesc%=DriverInstall, PCI\VEN_10…

[company.NTamd64.6.1]
%Product.DeviceDesc%=DriverInstall, PCI\VEN_10…

[SourceDisksNames.x86]
1=%INST_DISK_NAME%,“I386”

[SourceDisksNames.amd64]
1=%INST_DISK_NAME%,“Amd64”

[SourceDisksFiles]
SiDaNetPCI.sys = 1

[DriverInstall]
CopyFiles = DriverCopyFiles

[DriverCopyFiles]
NetPCI.sys,2

[DriverInstall.Services]
AddService = NetPCI,2,DriverService

[DriverService]
DisplayName=…
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\NetPCI.sys

;CoInstaller installation

[DestinationDirs]
CoInstaller_CopyFiles = 11

[DriverInstall.CoInstallers]
AddReg = CoInstaller_AddReg
CopyFiles = CoInstaller_CopyFiles

[CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000,“WdfCoInstaller01009.dll,WdfCoInstaller”

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll,2

[SourceDisksFiles]
wdfcoinstaller01009.dll=1

[DriverInstall.Wdf]
KmdfService = NetPCI, NetPCI_wdfsect

[NetPCI_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
Provider=…
Manufacturer=…
Product.DeviceDesc=…
INST_DISK_NAME=…

Directory structure:
…\Driver:
netpcicatalogfile.cat
NetPCI.sys
.\i368
.\amd64

…\Driver\i386:
NetPCI.sys
WdfCoInstaller01009.dll
WUDFUpdate_01009.dll

…\Driver\amd64:
NetPCI.sys
WdfCoInstaller01009.dll
WUDFUpdate_01009.dll

Can someone tell me what I am missing?

Regards,
Torben


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

xxxxx@conplement.de wrote:

I have a problem with my release signed driver. If I install it under a WinXP 32 (Version 5.1.2600) system the installation itself works but if I open the property tab it says that the driver is not signed. Even sigverif says that the driver is not signed.

Right. The property tab will say “unsigned” unless your driver is
signed by WHQL. You should use “signtool verify” to check your
signature. If the install didn’t complain, then you are golden.

Did you sign both the CAT and the SYS? It’s not necessary to sign the
SYS, I’m just checking.

But under a Win7 system (32 and 64) it works perfekt.

The .cat file itself shows that it is signed, either Win7 and WinXP:
30 2e 1e 04 00 4f 00 53 0…O.S
02 04 10 01 00 01 04 20 …
58 00 50 00 58 00 38 00 X.P.X.8.
36 00 2c 00 37 00 58 00 6.,.7.X.
38 00 36 00 2c 00 37 00 8.6.,.7.
58 00 36 00 34 00 00 00 X.6.4…

That merely says the CAT file was built for Win 7 and XP. The
signatures we apply are not specific to any operating system.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Hi,

thanks for the answers. As the answers to my own thread where catched by my spam filter unfortunatelly I just recognized them today…

Yes, I signed both - but just because it said “not signed” on XP. Before this misbehaviour was recognized I just signed the .cat file. So the .sys file signing was just for XP “testing”…

Thanks,
Torben