aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sign.bat
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sign.bat8
1 files changed, 3 insertions, 5 deletions
diff --git a/sign.bat b/sign.bat
index 1d919ec..2b22dcf 100644
--- a/sign.bat
+++ b/sign.bat
@@ -5,8 +5,7 @@
@setlocal enabledelayedexpansion
@echo off
-set cert_store=Test Certificate Store
-set cert_name=Test Certificate
+set cert_name=windows_drivers
if [%1] == [] (
echo Usage: %0 SYS_PATH
@@ -16,14 +15,13 @@ if [%1] == [] (
set sys_path=%~f1
echo ============================ CERT INFO ============================
-echo Certificate store: "%cert_store%"
echo Certificate name: "%cert_name%"
echo ========================== END CERT INFO ==========================
echo.
echo ============================= SIGNING =============================
call check_ddk.bat || goto :signing_failure
-echo signtool.exe sign /s "%cert_store%" /n "%cert_name%" "%sys_path%"
-signtool.exe sign /s "%cert_store%" /n "%cert_name%" "%sys_path%" >nul || goto :signing_failure
+echo signtool.exe sign /s root /n "%cert_name%" "%sys_path%"
+signtool.exe sign /s root /n "%cert_name%" "%sys_path%" >nul || goto :signing_failure
echo signtool.exe verify /pa "%sys_path%"
signtool.exe verify /pa "%sys_path%" >nul || goto :signing_failure
echo ========================= SIGNING SUCCESS =========================