From 6e23258f11be10502b30e4a369861884230a6338 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 6 Sep 2017 16:11:17 +0500 Subject: [PATCH] Driver: Improve signing scripts. --- src/driver/sign/Readme.txt | 8 -------- src/driver/sign/cert.bat | 4 +++- src/driver/sign/sign.bat | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 src/driver/sign/Readme.txt diff --git a/src/driver/sign/Readme.txt b/src/driver/sign/Readme.txt deleted file mode 100644 index 49e1c4fb..00000000 --- a/src/driver/sign/Readme.txt +++ /dev/null @@ -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" diff --git a/src/driver/sign/cert.bat b/src/driver/sign/cert.bat index 72bb0eae..ea80950c 100644 --- a/src/driver/sign/cert.bat +++ b/src/driver/sign/cert.bat @@ -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 diff --git a/src/driver/sign/sign.bat b/src/driver/sign/sign.bat index 5b29b363..98ca2fcd 100644 --- a/src/driver/sign/sign.bat +++ b/src/driver/sign/sign.bat @@ -1 +1 @@ -signtool sign /a /v /s FortFirewall /n "FortFirewallTestCert" ../fortfw64.sys +SignTool sign /a /v /s "Fort Firewall" /n FortFirewallTestCert ../fortfw64.sys