如何注册我的驱动程序,以便它将安装在Windows 7 64位? [英] How to sign my driver so it will install on Windows 7 64-bit?
问题描述
我有一个内核模式驱动程序,我要在64位Windows&NBSP安装吨; 7。它需要被数字签名。我的数字使用 dseo13b.exe
签署。但是,当我加载驱动程序我得到一个错误在系统事件日志中说:
I have a kernel mode driver and I have to install t on 64 bit Windows 7. It needs to be digitally signed. I digitally signed it using the dseo13b.exe
. But when I load the driver I get an error in the system event log saying:
驱动程序未能启动由于以下错误:
Windows无法验证数字签名,此文件。最近的硬件或软件的变化可能是安装不正确地签名或损坏的文件,或者可能是来源不明的恶意软件。
The driver failed to start due to the following error:
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.
我不想使用testsigning模式。我该如何解决呢?我需要从微软获得证书?
I don't want to use the testsigning mode. How do I resolve this? Do I need to get a certificate from Microsoft?
我已经开发了驱动程序,现在正在做这64位计算机上工作...
I have developed the driver and am now making it work on the 64 bit machine...
推荐答案
仅适用于64位建立:建立自我签署
Only for 64 bit builds: setting up self signing
1部分:创建和安装测试证书
Part 1: creating and installing the test certificate
- 在启动提升的命令行shell(Vista和更高版本)。
- makecert.exe -r -pe -ss我-nCN = MyTestCertificatemytestcert.cer
- certmgr.exe -add mytestcert.cer -s -r LOCALMACHINE根
- 开始certmgr.exe,并检查MyTestCertificate是根据个人和受信任的根证书颁发机构中所列的。
- 保存在安全的地方mytestcert.cer文件。
第2部分:配置系统,以便运行测试签code(Vista和更高版本)
Part 2: configuring the system to run test signed code (Vista and later)
- 在启动提升的命令行shell(Vista和更高版本)。
- 运行Bcdedit.exe来-set在高架cmd.exe的提示TESTSIGNING开。
- certmgr.exe -add mytestcert.cer -s -r LOCALMACHINE根
- certmgr.exe -add mytestcert.cer -s -r LOCALMACHINE trustedpublisher
- 重新启动。
- Vista中:测试模式将出现在所有四个角的桌面和微软(R)视窗(R) - (生成6000)将出现在顶部。 Windows 7的:测试ModeWindows 7Build 7600将出现在右下角
这篇关于如何注册我的驱动程序,以便它将安装在Windows 7 64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!