一. 创建测试证书Certmgr.exe(证书管理器工具)
makecert -r -pe -ss PrivateCertStore -n CN=Contoso.com(Test) -eku 1.3.6.1.5.5.7.3.3 ContosoTest.cer
https://docs.microsoft.com/zh-cn/windows-hardware/drivers/install/creating-test-certificates
二.导入证书Certmgr.exe(证书管理器工具)
certmgr /c /add endenvor.cer /s root
certmgr /c /add endenvor.cer /r currentUser /s trustedpublisher
https://docs.microsoft.com/zh-cn/dotnet/framework/tools/certmgr-exe-certificate-manager-tool
三.创建用于测试签名驱动程序包的目录文件
Inf2Cat /driver:D:\ProjectCurrent\EncryptMinifilter\x64\Debug\MiniTest /os:7_X64
https://docs.microsoft.com/zh-cn/windows-hardware/drivers/install/creating-a-catalog-file-for-test-signing-a-driver-package