windows驱动开发4.怎么对windows驱动程序签名
1.准备证书
从微软处购买证书
找到泄漏的过期签名证书
2.签名
方法一: 使用签名软件签名
方法二:使用微软签名软件签名
打开x64 Native Tools Command Prompt for VS 2022->切换到驱动程序路径
1 | signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /f cert.pfx /p password driver.sys |
测试签名
方法一:使用Signer
方法二:使用微软自带工具与测试证书签名
- 安装wdk后导出测试证书,存储位置:个人(Personal) → 证书。导出到驱动程序路径。
- 打开x64 Native Tools Command Prompt for VS 2022->切换到驱动程序路径
1 | signtool sign /f WDK.pfx /p 123 /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 HelloWorld.sys |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
