kmdf driver can't be installed in win2019 with error 0x800b0109

jianbiao jiang 1 Reputation point
2022-03-11T07:25:28.823+00:00

I just got started with driver development recently and got error‘s "Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider." and"Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher" when installing the driver. It is useless to take the following measures:

(1) The PnpLockDown of the project is set to 0; (2) Follow the link(https://learn.microsoft.com/zh-cn/troubleshoot/windows-server/identity/valid-root-ca-certificates-untrusted) to add the CA certificate.

The following is the driver installation log:

[Boot Session: 2022/03/11 10:46:21.500]

>> [SetupCopyOEMInf - C:\DriverTest\Drivers\CrashDriver.inf]
>> Section start 2022/03/11 10:52:09.485

  cmd: "C:\Program Files (x86)\Windows Kits\10\Testing\Runtimes\TAEF\te.processhost.exe"  /role=TestExecution /wexcommunication_connectionid=7F9D6076-61FD-4DBC-A443-301E637F9CF5 /stackframecount=50 /wexcommunication_protocol=ncalrpc  
 inf: Copy style: 0x00000000  
 sto: {Setup Import Driver Package: C:\DriverTest\Drivers\CrashDriver.inf} 10:52:09.516  
 inf:      Provider: <Your manufacturer name>  
 inf:      Class GUID: {78A1C341-4539-11d3-B88D-00C04FAD5171}  
 inf:      Driver Version: 03/11/2022,10.51.58.341  
 inf:      Catalog File: CrashDriver.cat  
 sto:      {Copy Driver Package: C:\DriverTest\Drivers\CrashDriver.inf} 10:52:09.532  
 sto:           Driver Package = C:\DriverTest\Drivers\CrashDriver.inf  
 sto:           Flags          = 0x00000007  
 sto:           Destination    = C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}  
 sto:           Copying driver package files to 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}'.  
 flq:           Copying 'C:\DriverTest\Drivers\CrashDriver.cat' to 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.cat'.  
 flq:           Copying 'C:\DriverTest\Drivers\CrashDriver.inf' to 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.inf'.  
 flq:           Copying 'C:\DriverTest\Drivers\CrashDriver.sys' to 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.sys'.  
 sto:      {Copy Driver Package: exit(0x00000000)} 10:52:09.547  
 pol:      {Driver package policy check} 10:52:09.640  
 pol:      {Driver package policy check - exit(0x00000000)} 10:52:09.640  
 sto:      {Stage Driver Package: C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.inf} 10:52:09.656  
 inf:           {Query Configurability: C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.inf} 10:52:09.672  
 inf:                Driver package uses WDF.  
 inf:                Driver package 'CrashDriver.inf' is configurable.  
 inf:           {Query Configurability: exit(0x00000000)} 10:52:09.687  
 flq:           Copying 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.cat' to 'C:\Windows\System32\DriverStore\Temp\{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.cat'.  
 flq:           Copying 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.inf' to 'C:\Windows\System32\DriverStore\Temp\{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.inf'.  
 flq:           Copying 'C:\Users\WDKREM~1\AppData\Local\Temp\{cfd56e10-68e1-429b-902b-68a1fee1d2a3}\CrashDriver.sys' to 'C:\Windows\System32\DriverStore\Temp\{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.sys'.  
 sto:           {DRIVERSTORE IMPORT VALIDATE} 10:52:09.750  
 sig:                {_VERIFY_FILE_SIGNATURE} 10:52:09.781  
 sig:                     Key      = CrashDriver.inf  
 sig:                     FilePath = C:\Windows\System32\DriverStore\Temp\{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.inf  
 sig:                     Catalog  = C:\Windows\System32\DriverStore\Temp\{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.cat  

! sig: Verifying file against specific (valid) catalog failed.
! 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)} 10:52:09.828
sig: {_VERIFY_FILE_SIGNATURE} 10:52:09.828
sig: Key = CrashDriver.inf
sig: FilePath = C:\Windows\System32\DriverStore\Temp{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.inf
sig: Catalog = C:\Windows\System32\DriverStore\Temp{5badd74c-c5b8-4082-9840-e9b8f389193f}\CrashDriver.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)} 10:52:09.891
sto: {DRIVERSTORE IMPORT VALIDATE: exit(0x00000000)} 10:52:09.907
sig: Signer Score = 0x0F000000 (Authenticode)
sig: Signer Name = WDKTestCert jiangjb01,132898988418997416
sto: {DRIVERSTORE IMPORT BEGIN} 10:52:09.922
sto: {DRIVERSTORE IMPORT BEGIN: exit(0x00000000)} 10:52:09.938
cpy: {Copy Directory: C:\Windows\System32\DriverStore\Temp{8013848d-00c8-824d-a5aa-2d4cc050692b}} 10:52:09.938
cpy: Target Path = C:\Windows\System32\DriverStore\FileRepository\crashdriver.inf_amd64_3cd8b0fa54d62b62
cpy: {Copy Directory: exit(0x00000000)} 10:52:09.954
idb: {Register Driver Package: C:\Windows\System32\DriverStore\FileRepository\crashdriver.inf_amd64_3cd8b0fa54d62b62\CrashDriver.inf} 10:52:09.969
idb: Created driver package object 'crashdriver.inf_amd64_3cd8b0fa54d62b62' in DRIVERS database node.
idb: Created driver INF file object 'oem12.inf' in DRIVERS database node.
idb: Registered driver package 'crashdriver.inf_amd64_3cd8b0fa54d62b62' with 'oem12.inf'.
idb: {Register Driver Package: exit(0x00000000)} 10:52:10.001
idb: {Publish Driver Package: C:\Windows\System32\DriverStore\FileRepository\crashdriver.inf_amd64_3cd8b0fa54d62b62\CrashDriver.inf} 10:52:10.001
idb: Activating driver package 'crashdriver.inf_amd64_3cd8b0fa54d62b62'.
cpy: Published 'crashdriver.inf_amd64_3cd8b0fa54d62b62\crashdriver.inf' to 'oem12.inf'.
idb: Indexed 2 device IDs for 'crashdriver.inf_amd64_3cd8b0fa54d62b62'.
sto: Flushed driver database node 'DRIVERS'. Time = 0 ms
sto: Flushed driver database node 'SYSTEM'. Time = 0 ms
idb: {Publish Driver Package: exit(0x00000000)} 10:52:10.062
sto: {DRIVERSTORE IMPORT END} 10:52:10.062
dvi: Flushed all driver package files to disk. Time = 0 ms
sig: Installed catalog 'CrashDriver.cat' as 'oem12.cat'.
sto: {DRIVERSTORE IMPORT END: exit(0x00000000)} 10:52:10.172
sto: {Stage Driver Package: exit(0x00000000)} 10:52:10.187
sto: {Setup Import Driver Package - exit (0x00000000)} 10:52:10.203
inf: Driver Store Path: C:\Windows\System32\DriverStore\FileRepository\crashdriver.inf_amd64_3cd8b0fa54d62b62\CrashDriver.inf
inf: Published Inf Path: C:\Windows\INF\oem12.inf
<<< Section end 2022/03/11 10:52:10.203
<<< [Exit status: SUCCESS]

Have a person to help to give a train of thought to solve this problem, thank!

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,579 questions
0 comments No comments
{count} votes