I fail to sign a Windows Audio Driver for a Virtual Device

Pierre Fourgeaud 0 Reputation points
2024-05-15T15:22:24.6866667+00:00

I have developed a Virtual Audio driver based on https://github.com/microsoft/Windows-driver-samples/blob/main/audio/simpleaudiosample.

So far so good, I was able to test and all. Now came the time when I would like to Release-Sign the driver. I started to dig into the Microsoft documentation starting at https://learn.microsoft.com/en-gb/windows-hardware/drivers/install/driver-signing. After digging in this rabbit hole for weeks and followed for example https://learn.microsoft.com/en-gb/windows-hardware/drivers/install/release-signing-a-driver-package-s-catalog-file and https://learn.microsoft.com/en-gb/windows-hardware/drivers/install/release-signing-a-driver-through-an-embedded-signature I am officially giving up and coming here.

If I install the driver, I get an error 52 with devcon status mydriver. If I use the command Signtool verify /kp /v /c mydriver.cat mydriver.sys then I get:

SignTool Error: Signing Cert does not chain to a Microsoft Root Cert.
SignTool Error: File not valid: .\mydriver.sys

I would love some pointers to help me figure out how I am holding it wrong. (Out certificate is from DigiCert and it is an EV Code Signing one as per https://learn.microsoft.com/en-gb/windows-hardware/drivers/dashboard/code-signing-cert-manage).

Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
121 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.