aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sign.bat
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-07-10 03:12:29 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-07-10 03:12:29 +0300
commit3c3cf496a6b09a2a6acbf77add3851989acdb64d (patch)
treedb1f26027a9527d95bfe150153c440b92988c9e6 /sign.bat
parentlibnt_path_converter: add README (diff)
downloadwindows7-drivers-3c3cf496a6b09a2a6acbf77add3851989acdb64d.tar.gz
windows7-drivers-3c3cf496a6b09a2a6acbf77add3851989acdb64d.zip
add_cert.bat: add certificates to the ROOT store
Diffstat (limited to 'sign.bat')
-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 =========================