The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
Our product has a WDM driver for several years, it works well for all previous window version, but recently we need to upgrade to window 2019 which already opened the test mode, the setup API always failed with error message "A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider."
We mainly used below cmd to sign the driver:
makecert.exe -a sha256 -r -pe -n CN=$(DDKCertName) -sv $(DDKTestCertPath).pvk $(DDKTestCertPath).cer
inf2cat.exe /driver:$(DDKOutputDir) /os:ServerRS5_$(DDKInf2CatArch) /USELOCALTIME"
SignTool.exe sign /f $(DDKTestCertPath) /p $(DDKOutputDir)$(Name).$(Ext)"
We installed the generated cert to root cert store and trust publisher store, and then call setup API to install driver to window.
We found it eventually copied the inf file to C:\Windows\System32\DriverStore folder and the driver binary to C:\Windows\System32\drivers folder after calling SetupCopyOEMInf(), but when call the INetCfgClassSetup->install method, the driver service was not created, it just return 0x80070002, however,we can create the service manually by sc create binPath="C:\Windows\System32\drivers.sys" type=kernel,and it could start well.
We also have other two NDIS filter drivers which used the same way to sign, but they didn't meet the issue.
Our environment is window server 2019, build 17763 which is running on a VM.
Not sure why this happened, no log or event trace could be watched, do you have any idea?
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Developing Minifilters||24 May 2021||Live, Online|
|Writing WDF Drivers||14 June 2021||Live, Online|
|Internals & Software Drivers||27 September 2021||Live, Online|
|Kernel Debugging||15 November 2021||Live, Online|