From 3c3cf496a6b09a2a6acbf77add3851989acdb64d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 10 Jul 2015 03:12:29 +0300 Subject: add_cert.bat: add certificates to the ROOT store --- sign.bat | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sign.bat') 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 ========================= -- cgit v1.2.3