aboutsummaryrefslogtreecommitdiff
path: root/driver-sign.bat
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-03-28 14:13:30 +0100
committerToni Uhlig <matzeton@googlemail.com>2019-03-28 14:13:30 +0100
commit487e95bfd9db3fb9e4410bf1adfbae5588ff7f0e (patch)
tree8fef60f82e0c859629c41165867a65f9d8851264 /driver-sign.bat
initial commit
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'driver-sign.bat')
-rw-r--r--driver-sign.bat27
1 files changed, 27 insertions, 0 deletions
diff --git a/driver-sign.bat b/driver-sign.bat
new file mode 100644
index 0000000..0052262
--- /dev/null
+++ b/driver-sign.bat
@@ -0,0 +1,27 @@
+@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 CA="%~dp0\VeriSign Class 3 Public Primary Certification Authority - G5.cer"
+set CERT="%~dp0\cert.pfx"
+
+date 01-01-14
+
+echo ***************************
+echo workdir.: %cd%
+echo signtool: %SIGNTOOL%
+echo driver..: %DRIVER%
+echo ca......: %CA%
+echo cert....: %CERT%
+echo ---------------------------
+%SIGNTOOL% sign /a /ac %CA% /f %CERT% /p "1" %DRIVER%
+echo ***************************
+%SIGNTOOL% verify /kp /v %DRIVER%
+echo ***************************
+
+net stop w32time
+net start w32time
+w32tm /resync /nowait
+
+REM pause
+timeout /t 3 \ No newline at end of file