diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-10 03:12:29 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-10 03:12:29 +0300 |
commit | 3c3cf496a6b09a2a6acbf77add3851989acdb64d (patch) | |
tree | db1f26027a9527d95bfe150153c440b92988c9e6 /sign.bat | |
parent | libnt_path_converter: add README (diff) | |
download | windows7-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.bat | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 ========================= |