Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 3df3e02

Browse files
kc284Mihaela Stoica
authored and
Mihaela Stoica
committed
CA-336851: Change file and timestamp hashes to SHA256. More logging.
Signed-off-by: Konstantina Chremmou <[email protected]>
1 parent c06dbc4 commit 3df3e02

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

mk/sign.bat

+11-6
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ set CTXSIGN=C:\ctxsign2\ctxsign.exe
6262
if "%sbe%"=="true" (
6363
echo "Signing in SBE"
6464

65-
%CTXSIGN% --help
66-
6765
echo %CTXSIGN% --authorise --workerID %worker% --orchID %worker% --jobID XenServerWindowsLegacyPVTools_signing ^
6866
--task XenCenter-%global_build_number% --debug
6967

@@ -86,12 +84,19 @@ if "%sbe%"=="true" (
8684
%CTXSIGN% --sign --key XenServer.NET_KEY --cross-sign --pagehashes yes --type Authenticode ^
8785
--description "%descr%" "%thefile%"
8886

87+
echo %CTXSIGN% --sign --key XenServerSHA256.NET_KEY --cross-sign --pagehashes yes ^
88+
--authenticode-SHA256 --authenticode-append "%thefile%"
89+
8990
date /t && time /t
90-
%CTXSIGN% --sign --authenticode-append --authenticode-SHA256 --key XenServerSHA256.NET_KEY ^
91-
--cross-sign --pagehashes yes "%thefile%"
91+
%CTXSIGN% --sign --key XenServerSHA256.NET_KEY --cross-sign --pagehashes yes ^
92+
--authenticode-SHA256 --authenticode-append "%thefile%"
9293
) else (
93-
%CTXSIGN% --sign --key XenServerSHA256.NET_KEY --pagehashes yes --type Authenticode-SHA256 ^
94-
--description "%descr%" "%thefile%"
94+
echo %CTXSIGN% --sign --key XenServerSHA256.NET_KEY --pagehashes yes --type Authenticode ^
95+
--authenticode-SHA256 --description "%descr%" "%thefile%"
96+
97+
date /t && time /t
98+
%CTXSIGN% --sign --key XenServerSHA256.NET_KEY --pagehashes yes --type Authenticode ^
99+
--authenticode-SHA256 --description "%descr%" "%thefile%"
95100
)
96101
%CTXSIGN% --end
97102
echo.

0 commit comments

Comments
 (0)