Skip to content

Commit

Permalink
CA-336851: Change file and timestamp hashes to SHA256. More logging.
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Chremmou <[email protected]>
  • Loading branch information
kc284 authored and MihaelaStoica committed Apr 2, 2020
1 parent c06dbc4 commit 3df3e02
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions mk/sign.bat
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ set CTXSIGN=C:\ctxsign2\ctxsign.exe
if "%sbe%"=="true" (
echo "Signing in SBE"

%CTXSIGN% --help

echo %CTXSIGN% --authorise --workerID %worker% --orchID %worker% --jobID XenServerWindowsLegacyPVTools_signing ^
--task XenCenter-%global_build_number% --debug

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

echo %CTXSIGN% --sign --key XenServerSHA256.NET_KEY --cross-sign --pagehashes yes ^
--authenticode-SHA256 --authenticode-append "%thefile%"

date /t && time /t
%CTXSIGN% --sign --authenticode-append --authenticode-SHA256 --key XenServerSHA256.NET_KEY ^
--cross-sign --pagehashes yes "%thefile%"
%CTXSIGN% --sign --key XenServerSHA256.NET_KEY --cross-sign --pagehashes yes ^
--authenticode-SHA256 --authenticode-append "%thefile%"
) else (
%CTXSIGN% --sign --key XenServerSHA256.NET_KEY --pagehashes yes --type Authenticode-SHA256 ^
--description "%descr%" "%thefile%"
echo %CTXSIGN% --sign --key XenServerSHA256.NET_KEY --pagehashes yes --type Authenticode ^
--authenticode-SHA256 --description "%descr%" "%thefile%"

date /t && time /t
%CTXSIGN% --sign --key XenServerSHA256.NET_KEY --pagehashes yes --type Authenticode ^
--authenticode-SHA256 --description "%descr%" "%thefile%"
)
%CTXSIGN% --end
echo.
Expand Down

0 comments on commit 3df3e02

Please sign in to comment.