blob: 005226283f345f24dec5831e360e2932283ed707 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
@echo off
set SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
set DRIVER="%~dp0\x64\Debug\PastDSEDriver.sys"
set CA="%~dp0\VeriSign Class 3 Public Primary Certification Authority - G5.cer"
set CERT="%~dp0\cert.pfx"
date 01-01-14
echo ***************************
echo workdir.: %cd%
echo signtool: %SIGNTOOL%
echo driver..: %DRIVER%
echo ca......: %CA%
echo cert....: %CERT%
echo ---------------------------
%SIGNTOOL% sign /a /ac %CA% /f %CERT% /p "1" %DRIVER%
echo ***************************
%SIGNTOOL% verify /kp /v %DRIVER%
echo ***************************
net stop w32time
net start w32time
w32tm /resync /nowait
REM pause
timeout /t 3
|