[wdmaudiodev] Re: Need help in KS Topology Test - WinBlue, Wave test- Certification

  • To: wdmaudiodev <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 2 Sep 2015 19:05:34 -0700

It is weird though that the setupapi.dev.log still shows warning in the
following section:
{DRIVERSTORE IMPORT VALIDATE} 17:40:51.872
inf: Opened INF:
'C:\Windows\System32\DriverStore\Temp\{538b8edf-9d7e-6547-adb1-fd26b369c362}\tabletaudiosample.inf'
([strings])
sig: {_VERIFY_FILE_SIGNATURE} 17:40:51.919
sig: Key = tabletaudiosample.inf
sig: FilePath =
C:\Windows\System32\DriverStore\Temp\{538b8edf-9d7e-6547-adb1-fd26b369c362}\tabletaudiosample.inf
sig: Catalog =
C:\Windows\System32\DriverStore\Temp\{538b8edf-9d7e-6547-adb1-fd26b369c362}\
sysvad.cat
! sig: Verifying file against specific (valid)
catalog failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain
processed, but terminated in a root certificate which is not trusted by the
trust provider.
sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)}
17:40:51.934
sig: {_VERIFY_FILE_SIGNATURE} 17:40:51.934
sig: Key = tabletaudiosample.inf
sig: FilePath =
C:\Windows\System32\DriverStore\Temp\{538b8edf-9d7e-6547-adb1-fd26b369c362}\tabletaudiosample.inf
sig: Catalog =
C:\Windows\System32\DriverStore\Temp\{538b8edf-9d7e-6547-adb1-fd26b369c362}\
sysvad.cat
sig: Success: File is signed in Authenticode(tm)
catalog.
sig: Error 0xe0000241: The INF was signed with an
Authenticode(tm) catalog from a trusted publisher.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000241)}
17:40:51.965
sig: Driver package is digitally signed by 'WDKTestCert
pkashyap,130855420529476212' (). Signer Score = 0x0F000000
sig: Code Integrity State: Test Signing
inf: Opened INF:
'C:\Windows\System32\DriverStore\Temp\{538b8edf-9d7e-6547-adb1-fd26b369c362}\tabletaudiosample.inf'
([strings])
sig: Driver package is valid.
sto: {DRIVERSTORE IMPORT VALIDATE: exit(0x00000000)}
17:40:51.981

However, it shows up as success in the next {_VERIFY_FILE_SIGNATURE}
section.

*Warm regards,*
Parinitha Kashyap

On Wed, Sep 2, 2015 at 5:47 PM, Parinitha Kashyap <
parinitha.kashyap@xxxxxxxxx> wrote:

Yes. I did exactly that :) But unknown device still shows up in the 'Other
devices' category, not in the 'Sound, video and game...' category. What
does it mean by the error 'No drivers installed for this device'. I think
it is not able to find the tabletaudiosample.sys file. Probably it expects
the .sys file to be in a certain path and it is not able to find it there?

*Warm regards,*
Parinitha Kashyap

On Wed, Sep 2, 2015 at 5:21 PM, Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:

Remove it from the driver store with *pnputil -e* and *pnputil -d
oem##.inf* then fix the signing problem and try again.



This is all very confusing, so I decided to make a blog post:


http://blogs.msdn.com/b/matthew_van_eerde/archive/2015/09/02/poking-into-the-quot-trusted-root-certification-authorities-quot-certificate-stores-for-the-current-user-and-the-local-machine.aspx



Obligatory xkcd: http://xkcd.com/1200/



*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
wdmaudiodev-bounce@xxxxxxxxxxxxx]
*Sent:* Wednesday, September 2, 2015 5:12 PM

*To:* wdmaudiodev
*Subject:* [wdmaudiodev] Re: Need help in KS Topology Test - WinBlue,
Wave test- Certification



Yes. It is not showing that warning now. It is added to the driver store
as 'TODO-Set-Provider'. In the device manager, it still says unknown device
though with the error 'The drivers for this device are not installed. (Code
28)



There are no compatible drivers for this device.'


*Warm regards,*

Parinitha Kashyap



On Wed, Sep 2, 2015 at 4:55 PM, Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:

But I added the certificate in 'Trusted Root Certificate Authorities'



There are two such stores – a “current user” store for apps, and a
“machine” store for the computer account. If you add it to the “current
user” store you will get the behavior you describe – it looks OK when you
click on the .cat file, but SetupAPI complains when you try to add the
driver.



You can see both stores as follows:



1. Start | mmc.exe

2. Agree to elevation prompt

3. File | Add/Remove Snap-in…

4. Click on Certificates

5. Add >

6. Choose “My user account”

7. Finish

8. Click on Certificates (again)

9. Add >

10. This time, choose, “Computer account”

11. Choose “Local computer”

12. Finish



You can now inspect both “Trusted Root Certificate Authorities” stores.
The important one is the one under “Certificates (Local Computer)”.



*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
wdmaudiodev-bounce@xxxxxxxxxxxxx]
*Sent:* Wednesday, September 2, 2015 4:47 PM


*To:* wdmaudiodev
*Subject:* [wdmaudiodev] Re: Need help in KS Topology Test - WinBlue,
Wave test- Certification



It says this 'Error 0x800b0109: A certificate chain processed, but
terminated in a root certificate which is not trusted by the trust
provider.' But I added the certificate in 'Trusted Root Certificate
Authorities'. In the device manager, under 'Sound,video and game
controllers', it is listed as an unknown device with the status 'No drivers
are installed for this device.'


*Warm regards,*

Parinitha Kashyap



On Wed, Sep 2, 2015 at 4:18 PM, Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:

C:\windows\inf\setupapi.dev.log should have more information on why the
warning is displayed.



*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
wdmaudiodev-bounce@xxxxxxxxxxxxx]
*Sent:* Wednesday, September 2, 2015 4:05 PM


*To:* wdmaudiodev
*Subject:* [wdmaudiodev] Re: Need help in KS Topology Test - WinBlue,
Wave test- Certification



I added it to the trusted root store, now the .cat file does not show any
error. But I do get the warning about not being able to verify the
publisher when I add to the driver store (after deleting).


*Warm regards,*

Parinitha Kashyap



On Wed, Sep 2, 2015 at 3:46 PM, Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:

If you double-click the .cat file on the test machine, does it show any
errors? You may need to add the root signing certificate to the *machine*
“trusted root authorities” certificate store.



certutil -addstore root whatever.cer



*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
wdmaudiodev-bounce@xxxxxxxxxxxxx]
*Sent:* Wednesday, September 2, 2015 3:36 PM


*To:* wdmaudiodev
*Subject:* [wdmaudiodev] Re: Need help in KS Topology Test - WinBlue,
Wave test- Certification



It did install under the name oem13.inf but MS couldnt verify the
publsher of the software. I have enabled testsigning on the target machine.


*Warm regards,*

Parinitha Kashyap



On Wed, Sep 2, 2015 at 3:29 PM, Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx> wrote:

devcon install tabletaudiosample.inf Root\sysvad_TabletAudioSample



Do “pnputil -a tabletaudiosample.inf” instead – as a virtual driver,
tabletaudiosample.inf has a [DeviceInstall32] section which takes care of
creating the (fake) physical device object.



*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
wdmaudiodev-bounce@xxxxxxxxxxxxx]
*Sent:* Wednesday, September 2, 2015 2:53 PM
*To:* wdmaudiodev
*Subject:* [wdmaudiodev] Re: Need help in KS Topology Test - WinBlue,
Wave test- Certification



I found the WdfCoinstaller01011.dll in windows kits, copied it to the
sysvaddriver folder in target computer, and tried to install the driver
again. But I am getting the same error.


*Warm regards,*

Parinitha Kashyap



On Wed, Sep 2, 2015 at 2:21 PM, Parinitha Kashyap <
parinitha.kashyap@xxxxxxxxx> wrote:

Ok. I was able to build the driver, generate the catalog file and sign
it successfully. A certificate 'package.cer' was generated. I did step 1
from readme.md in manual deployment. But the installation of the driver
is failing. It gives the following error 'Device node created. Install is
complete when drivers are installed...
Updating drivers for Root\sysvad_TabletAudioSample from
C:\SysvadDriver\tabletaudiosample.inf.
devcon failed.'



I looked into the setupapi.dev.log file.

[Device Install (UpdateDriverForPlugAndPlayDevices) -
Root\sysvad_TabletAudioSample]
Section start 2015/09/02 14:14:30.493
cmd: C:\Tools\devcon install tabletaudiosample.inf
Root\sysvad_TabletAudioSample
dvi: {Update Device Driver - ROOT\MEDIA\0002}
dvi: Set selected driver complete.
dvi: {Build Driver List} 14:14:30.555
dvi: Searching for hardware ID(s):
dvi: root\sysvad_tabletaudiosample
dvi: Processing a single INF:
'c:\sysvaddriver\tabletaudiosample.inf'
inf: Opened INF: 'c:\sysvaddriver\tabletaudiosample.inf'
([strings])
dvi: {Build Driver List - exit(0x00000000)} 14:14:30.602
dvi: {DIF_SELECTBESTCOMPATDRV} 14:14:30.602
dvi: Using exported function 'MediaClassInstaller' in
module 'C:\Windows\system32\mmci.dll'.
dvi: Class installer == mmci.dll,MediaClassInstaller
dvi: No CoInstallers found
dvi: Class installer: Enter 14:14:30.633
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:30.649
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed!
! dvi: Error 0xe0000228: There are no compatible drivers for
this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:14:30.696
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No drivers were found that are better matching drivers for
device instance ROOT\MEDIA\0002 (Error 0x00000103)
dvi: {Update Device Driver - ROOT\MEDIA\0004}
dvi: Set selected driver complete.
dvi: {Build Driver List} 14:14:30.743
dvi: Searching for hardware ID(s):
dvi: root\sysvad_tabletaudiosample
dvi: Processing a single INF:
'c:\sysvaddriver\tabletaudiosample.inf'
inf: Opened INF: 'c:\sysvaddriver\tabletaudiosample.inf'
([strings])
dvi: {Build Driver List - exit(0x00000000)} 14:14:30.774
dvi: {DIF_SELECTBESTCOMPATDRV} 14:14:30.789
dvi: Using exported function 'MediaClassInstaller' in
module 'C:\Windows\system32\mmci.dll'.
dvi: Class installer == mmci.dll,MediaClassInstaller
dvi: No CoInstallers found
dvi: Class installer: Enter 14:14:30.821
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:30.836
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed!
! dvi: Error 0xe0000228: There are no compatible drivers for
this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:14:30.868
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No drivers were found that are better matching drivers for
device instance ROOT\MEDIA\0004 (Error 0x00000103)
dvi: {Update Device Driver - ROOT\MEDIA\0006}
dvi: Set selected driver complete.
dvi: {Build Driver List} 14:14:30.914
dvi: Searching for hardware ID(s):
dvi: root\sysvad_tabletaudiosample
dvi: Processing a single INF:
'c:\sysvaddriver\tabletaudiosample.inf'
inf: Opened INF: 'c:\sysvaddriver\tabletaudiosample.inf'
([strings])
dvi: {Build Driver List - exit(0x00000000)} 14:14:30.961
dvi: {DIF_SELECTBESTCOMPATDRV} 14:14:30.961
dvi: Using exported function 'MediaClassInstaller' in
module 'C:\Windows\system32\mmci.dll'.
dvi: Class installer == mmci.dll,MediaClassInstaller
dvi: No CoInstallers found
dvi: Class installer: Enter 14:14:31.008
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.008
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed!
! dvi: Error 0xe0000228: There are no compatible drivers for
this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:14:31.055
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No drivers were found that are better matching drivers for
device instance ROOT\MEDIA\0006 (Error 0x00000103)
dvi: {Update Device Driver - ROOT\MEDIA\0007}
dvi: Set selected driver complete.
dvi: {Build Driver List} 14:14:31.102
dvi: Searching for hardware ID(s):
dvi: root\sysvad_tabletaudiosample
dvi: Processing a single INF:
'c:\sysvaddriver\tabletaudiosample.inf'
inf: Opened INF: 'c:\sysvaddriver\tabletaudiosample.inf'
([strings])
dvi: {Build Driver List - exit(0x00000000)} 14:14:31.149
dvi: {DIF_SELECTBESTCOMPATDRV} 14:14:31.149
dvi: Using exported function 'MediaClassInstaller' in
module 'C:\Windows\system32\mmci.dll'.
dvi: Class installer == mmci.dll,MediaClassInstaller
dvi: No CoInstallers found
dvi: Class installer: Enter 14:14:31.180
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.196
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed!
! dvi: Error 0xe0000228: There are no compatible drivers for
this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:14:31.243
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No drivers were found that are better matching drivers for
device instance ROOT\MEDIA\0007 (Error 0x00000103)
dvi: {Update Device Driver - ROOT\MEDIA\0008}
dvi: Set selected driver complete.
dvi: {Build Driver List} 14:14:31.289
dvi: Searching for hardware ID(s):
dvi: root\sysvad_tabletaudiosample
dvi: Processing a single INF:
'c:\sysvaddriver\tabletaudiosample.inf'
inf: Opened INF: 'c:\sysvaddriver\tabletaudiosample.inf'
([strings])
dvi: {Build Driver List - exit(0x00000000)} 14:14:31.321
dvi: {DIF_SELECTBESTCOMPATDRV} 14:14:31.336
dvi: Using exported function 'MediaClassInstaller' in
module 'C:\Windows\system32\mmci.dll'.
dvi: Class installer == mmci.dll,MediaClassInstaller
dvi: No CoInstallers found
dvi: Class installer: Enter 14:14:31.368
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.383
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed!
! dvi: Error 0xe0000228: There are no compatible drivers for
this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:14:31.430
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No drivers were found that are better matching drivers for
device instance ROOT\MEDIA\0008 (Error 0x00000103)
! ndv: No devices were updated.
dvi: {DIF_DESTROYPRIVATEDATA} 14:14:31.508
dvi: Class installer: Enter 14:14:31.508
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.524
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 14:14:31.540
dvi: {DIF_DESTROYPRIVATEDATA} 14:14:31.555
dvi: Class installer: Enter 14:14:31.555
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.586
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 14:14:31.602
dvi: {DIF_DESTROYPRIVATEDATA} 14:14:31.602
dvi: Class installer: Enter 14:14:31.618
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.633
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 14:14:31.649
dvi: {DIF_DESTROYPRIVATEDATA} 14:14:31.649
dvi: Class installer: Enter 14:14:31.665
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.665
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 14:14:31.680
dvi: {DIF_DESTROYPRIVATEDATA} 14:14:31.696
dvi: Class installer: Enter 14:14:31.696
dvi: Class installer: Exit
dvi: Default installer: Enter 14:14:31.711
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 14:14:31.727
<<< Section end 2015/09/02 14:14:31.727
<<< [Exit status: FAILURE(0x00000103)]



What does it mean selecting the best driver? I also noticed that
WdfCoinstaller01011.dll was not generated when I built the driver. It looks
like this might be the reason. How do I get this dll?


*Warm regards,*

Parinitha Kashyap



On Wed, Sep 2, 2015 at 11:45 AM, Tim Roberts <timr@xxxxxxxxx> wrote:

Parinitha Kashyap wrote:
oh ok. Thank you. Which certificate should I use to sign the .cat file?

If you have a Class 3 Code-Signing Certificate from one of the
Microsoft-approved certificate authorities, you can use that one.
Otherwise, Visual Studio will create a test certificate for you. That
requires that you turn on /testsigning on the machine you use for testing.


--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx
?subject=unsubscribe
Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/















Other related posts: