aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-03-17 21:04:06 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-03-17 21:04:06 +0100
commitaf7ebb79d9be49a35cce0bf5b2ae1e129506fec8 (patch)
treeaf91956160dec40bddf4d161eb5853e28004d3e4
parent487e95bfd9db3fb9e4410bf1adfbae5588ff7f0e (diff)
* driver sign script signs release as well
* removed annoying cert passphrase Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--cert.pfxbin6139 -> 5925 bytes
-rw-r--r--driver-sign.bat12
2 files changed, 7 insertions, 5 deletions
diff --git a/cert.pfx b/cert.pfx
index bc4bc60..4d9bcb3 100644
--- a/cert.pfx
+++ b/cert.pfx
Binary files differ
diff --git a/driver-sign.bat b/driver-sign.bat
index 0052262..21d1c0b 100644
--- a/driver-sign.bat
+++ b/driver-sign.bat
@@ -1,7 +1,8 @@
@echo off
set SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
-set DRIVER="%~dp0\x64\Debug\PastDSEDriver.sys"
+set DRIVER_DEBUG="%~dp0x64\Debug\PastDSEDriver.sys"
+set DRIVER_RELEASE="%~dp0x64\Release\PastDSEDriver.sys"
set CA="%~dp0\VeriSign Class 3 Public Primary Certification Authority - G5.cer"
set CERT="%~dp0\cert.pfx"
@@ -14,14 +15,15 @@ echo driver..: %DRIVER%
echo ca......: %CA%
echo cert....: %CERT%
echo ---------------------------
-%SIGNTOOL% sign /a /ac %CA% /f %CERT% /p "1" %DRIVER%
+%SIGNTOOL% sign /a /ac %CA% /f %CERT% %DRIVER_DEBUG%
+%SIGNTOOL% sign /a /ac %CA% /f %CERT% %DRIVER_RELEASE%
echo ***************************
-%SIGNTOOL% verify /kp /v %DRIVER%
+%SIGNTOOL% verify /kp /v %DRIVER_DEBUG%
+%SIGNTOOL% verify /kp /v %DRIVER_RELEASE%
echo ***************************
net stop w32time
net start w32time
w32tm /resync /nowait
-REM pause
-timeout /t 3 \ No newline at end of file
+pause \ No newline at end of file