cert.pfx
2、生成cat
cmd /C "%DDK_PATH%\bin\selfsign\Inf2Cat /driver:%cd% /os:Server2008_X64,7_X64
注意inf中DriverVer的格式:DriverVer=11/20/2012,1.0.0.1
3、对cat签名:
cmd /C "%DDK_PATH%\bin\x86\signtool sign /f cert.pfx /p password /t http://timestamp.verisign.com/scripts/timstamp.dll driver.cat
4、证书验证:
cmd /C "%DDK_PATH%\bin\x86\signtool verify /pa driver.cat
一.生成自己的根证书
命令: Makecert -r -pe -ss testcertstorename certfilename.cer
例如: makecert –n “CN=rcao” –r –pe –ss Richard Richard.cer
二.安装根证书
命令: certmgr.exe -add certfilename.cer -s -r localMachine root
certmgr.exe -add certfilename.cer -s -r localMachine trustedpublisher
例如: certmgr.exe –add Richard.cer –s –r localMachine root
Certmgr.exe –add Richard.cer –s –r localMachine trustedpublisher
验证: 使用命令certmgr.msc打开Certificates对话框
-> Trusted Root Certification Authorities -> Certificates
和
-> Trusted Publishers -> Certificates
和
-> Richard -> Certificates
下面应该可以看到证书 Richard.cer
三.导出个人证书(PFX)
使用命令certmgr.msc打开Certificates对话框,
选择路径 -> Richard -> Certificates,
双击证书Richard,
在弹出的对话框中选择Details标签,
点击Copy to File…按钮,根据提示导出证书