Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions crates/cargo-wdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,23 @@ Building a sample driver requires the `--sample` flag. If it is not specified, t

If you have a workspace with a mix of sample and non-sample driver projects, the build will fail as that scenario is not supported yet. In the future `build` will be able to automatically detect sample projects. That will remove the need for the `--sample` flag and enable support for this scenario.

#### Signing and Verification
#### Signing

To sign driver artifacts `build` looks for a certificate called `WDRLocalTestCert` in a store called `WDRTestCertStore`. Make sure you place your signing certificate there with that name. If no certificate is found, `build` will automatically generate a new self-signed one and add it for you.
By default, `build` signs the driver binary and catalog using a certificate with `CN = WDRLocalTestCert` in the `WDRTestCertStore`. To check whether a certificate already exists, run `certmgr.msc` from the Windows Run dialog and look under `WDRTestCertStore > Certificates`. The signing certificate is also included as `WDRLocalTestCert.cer` in `target\<profile>\<project-name>-package`.

If no certificate is found, `build` automatically creates a self-signed certificate, uses it for signing, and adds it to `WDRTestCertStore` for reuse in subsequent builds.

#### Verification
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### Verification
#### Signature Verification

Better to explicitly state what kind of verification it is since it is no longer part of a heading that has the word "Signing" in it.


If the `--verify-signature` flag is provided, the signatures are verified after signing. For verification to work, make sure you add a copy of the signing certificate in the `Trusted Root Certification Authorities` store. For security reasons `build` does not automatically do this even when it automatically generates the cert. You will have to always perform this step manually.

#### Installing self signed certificate (non-prod case)

The driver package that gets generated at `target\<profile>\<project-name>-package` post build also includes the self signed certificate `WDRLocalTestCert.cer`. Since the driver and catalog files are signed with self signed certificate instead of production certificate (CA issued). We need to manually add a copy of this certificate in the `Trusted Root Certification Authorities` store on the target machine where you want to install the driver.
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is incomplete and grammatically incorrect. There's a period after "CA issued" that should either be a comma, or the sentence should be restructured. Consider revising to: "Since the driver and catalog files are signed with a self-signed certificate instead of a production certificate (CA issued), we need to manually add a copy of this certificate in the Trusted Root Certification Authorities store on the target machine where you want to install the driver."

Suggested change
The driver package that gets generated at `target\<profile>\<project-name>-package` post build also includes the self signed certificate `WDRLocalTestCert.cer`. Since the driver and catalog files are signed with self signed certificate instead of production certificate (CA issued). We need to manually add a copy of this certificate in the `Trusted Root Certification Authorities` store on the target machine where you want to install the driver.
The driver package that gets generated at `target\<profile>\<project-name>-package` post build also includes the self-signed certificate `WDRLocalTestCert.cer`. Since the driver and catalog files are signed with a self-signed certificate instead of a production certificate (CA issued), we need to manually add a copy of this certificate in the `Trusted Root Certification Authorities` store on the target machine where you want to install the driver.

Copilot uses AI. Check for mistakes.
Comment on lines +101 to +103
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an inconsistency in hyphenation: "self signed" should be "self-signed" to match the usage in the rest of the document (see line 95 where "self-signed certificate" is correctly hyphenated). The term should be consistently hyphenated throughout.

Suggested change
#### Installing self signed certificate (non-prod case)
The driver package that gets generated at `target\<profile>\<project-name>-package` post build also includes the self signed certificate `WDRLocalTestCert.cer`. Since the driver and catalog files are signed with self signed certificate instead of production certificate (CA issued). We need to manually add a copy of this certificate in the `Trusted Root Certification Authorities` store on the target machine where you want to install the driver.
#### Installing self-signed certificate (non-prod case)
The driver package that gets generated at `target\<profile>\<project-name>-package` post build also includes the self-signed certificate `WDRLocalTestCert.cer`. Since the driver and catalog files are signed with self-signed certificate instead of production certificate (CA issued). We need to manually add a copy of this certificate in the `Trusted Root Certification Authorities` store on the target machine where you want to install the driver.

Copilot uses AI. Check for mistakes.

To install the certificate on Windows, double‑click the certificate file and choose "Install Certificate". In the wizard, select the store location (Local Machine is recommended), choose "Place all certificates in the following store", browse to "Trusted Root Certification Authorities", then complete the wizard.
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The non-standard character '‑' (non-breaking hyphen, Unicode U+2011) is used in "double‑click" instead of a standard hyphen '-'. This should be replaced with a standard ASCII hyphen for consistency and to avoid potential rendering issues in different contexts.

Suggested change
To install the certificate on Windows, doubleclick the certificate file and choose "Install Certificate". In the wizard, select the store location (Local Machine is recommended), choose "Place all certificates in the following store", browse to "Trusted Root Certification Authorities", then complete the wizard.
To install the certificate on Windows, double-click the certificate file and choose "Install Certificate". In the wizard, select the store location (Local Machine is recommended), choose "Place all certificates in the following store", browse to "Trusted Root Certification Authorities", then complete the wizard.

Copilot uses AI. Check for mistakes.


Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an extra blank line here. The document should maintain consistent spacing. In other parts of the README, there's only one blank line between sections.

Suggested change

Copilot uses AI. Check for mistakes.
#### Examples

- To build a driver project with default options, navigate to the root of the project and run:
Expand Down
Loading