Driver: Improve signing scripts.

This commit is contained in:
Nodir Temirkhodjaev 2017-09-06 16:11:17 +05:00
parent a516c354c3
commit 6e23258f11
3 changed files with 4 additions and 10 deletions

View File

@ -1,8 +0,0 @@
Work as Administrator!
1. Turn on the test signing mode: "bcdedit.exe /set TESTSIGNING ON"
2. Create test certificate: "Makecert -r -n "CN=FortFirewallTestCert" -ss "FortFirewall" -sr LocalMachine"
3. Run -> mmc -> File -> Add or remove...
- Select "Certificates" -> Add -> Computer -> Local machine -> OK;
- Certificates (Local machine) -> Copy certificate from "FortFirewall" into "Trusted root certification centers".
4. Sign the driver: "signtool sign /a /v /s FortFirewall /n "FortFirewallTestCert" fortfw64.sys"

View File

@ -1 +1,3 @@
Makecert -r -n "CN=FortFirewallTestCert" -ss "FortFirewall" -sr LocalMachine
MakeCert -r -pe -ss "Fort Firewall" -n "CN=FortFirewallTestCert" FortFirewallTest.cer
CertMgr /add FortFirewallTest.cer /s /r localMachine root
Del FortFirewallTest.cer

View File

@ -1 +1 @@
signtool sign /a /v /s FortFirewall /n "FortFirewallTestCert" ../fortfw64.sys
SignTool sign /a /v /s "Fort Firewall" /n FortFirewallTestCert ../fortfw64.sys