diff options
Diffstat (limited to 'add_cert.bat')
-rw-r--r-- | add_cert.bat | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/add_cert.bat b/add_cert.bat index ed42e52..e58bd63 100644 --- a/add_cert.bat +++ b/add_cert.bat @@ -5,20 +5,16 @@ @setlocal enabledelayedexpansion @echo off -set cert_store=Test Certificate Store -set cert_name=Test Certificate +set cert_name=windows_drivers echo ============================ CERT INFO ============================ -echo Certificate store: "%cert_store%" echo Certificate name: "%cert_name%" echo ========================== END CERT INFO ========================== echo. echo ======================= ADDING CERTIFICATE ======================== call check_ddk.bat || goto :add_cert_failure -echo makecert.exe -$ individual -r -pe -ss "%cert_store%" -n CN="%cert_name%" "%cert_name%.cer" -makecert.exe -$ individual -r -pe -ss "%cert_store%" -n CN="%cert_name%" "%cert_name%.cer" >nul || goto :add_cert_failure -echo certmgr.exe /add "%cert_name%.cer" /s /r localMachine root -certmgr.exe /add "%cert_name%.cer" /s /r localMachine root >nul || goto :add_cert_failure +echo makecert.exe -r -pe -ss root -n CN="%cert_name%" "%cert_name%.cer" +makecert.exe -r -pe -ss root -n CN="%cert_name%" "%cert_name%.cer" >nul || goto :add_cert_failure echo del "%cert_name%.cer" del "%cert_name%.cer" >nul || goto :add_cert_failure echo =================== ADDING CERTIFICATE SUCCESS ==================== |