aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-03-23 23:06:01 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-03-23 23:06:01 +0100
commitc871ce3a02a621be52c853ab3c6ccf576a2fa89c (patch)
treec5226b64f0a5cadd1394fba7c713a7fee0b2ce5b
parente785a838bdc8dcd5c06ec753b38735fb685972fe (diff)
* moved all certs in same named subdir
* added admin priv Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--certs/cert_0.pfx (renamed from cert.pfx)bin5925 -> 5925 bytes
-rw-r--r--driver-sign.bat13
-rw-r--r--driver-start.bat9
-rw-r--r--driver-stop.bat9
4 files changed, 29 insertions, 2 deletions
diff --git a/cert.pfx b/certs/cert_0.pfx
index 4d9bcb3..4d9bcb3 100644
--- a/cert.pfx
+++ b/certs/cert_0.pfx
Binary files differ
diff --git a/driver-sign.bat b/driver-sign.bat
index 21d1c0b..03d911f 100644
--- a/driver-sign.bat
+++ b/driver-sign.bat
@@ -3,8 +3,17 @@
set SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
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"
+set CA="%~dp0\certs\VeriSign Class 3 Public Primary Certification Authority - G5.cer"
+set CERT="%~dp0\certs\cert_0.pfx"
+
+net session >nul 2>&1
+if %ERRORLEVEL% EQU 0 (
+ echo You are running this script as admin. Fine!
+) else (
+ echo ERROR: This script requires admin privileges!
+ pause
+ exit /b 1
+)
date 01-01-14
diff --git a/driver-start.bat b/driver-start.bat
index 93612e7..acb4824 100644
--- a/driver-start.bat
+++ b/driver-start.bat
@@ -3,6 +3,15 @@ set SCNAME=PastDSE
set DRIVER="%~dp0\x64\Debug\PastDSEDriver.sys"
if not exist %DRIVER% set DRIVER="%~dp0\bin\x64\Debug\PastDSEDriver.sys"
+net session >nul 2>&1
+if %ERRORLEVEL% EQU 0 (
+ echo You are running this script as admin. Fine!
+) else (
+ echo ERROR: This script requires admin privileges!
+ pause
+ exit /b 1
+)
+
echo ***************************
echo Service Name: %SCNAME%
echo Driver......: %DRIVER%
diff --git a/driver-stop.bat b/driver-stop.bat
index dcae810..32c9bb8 100644
--- a/driver-stop.bat
+++ b/driver-stop.bat
@@ -1,6 +1,15 @@
@echo off
set SCNAME=PastDSE
+net session >nul 2>&1
+if %ERRORLEVEL% EQU 0 (
+ echo You are running this script as admin. Fine!
+) else (
+ echo ERROR: This script requires admin privileges!
+ pause
+ exit /b 1
+)
+
echo ***************************
echo Service Name: %SCNAME%
echo ***************************