From 3df3e02a2f5f1b1a7f50530b593d71ecc03e9e01 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Thu, 2 Apr 2020 14:50:26 +0100 Subject: [PATCH] CA-336851: Change file and timestamp hashes to SHA256. More logging. Signed-off-by: Konstantina Chremmou --- mk/sign.bat | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mk/sign.bat b/mk/sign.bat index 4a00b75a04..b70c707cf0 100644 --- a/mk/sign.bat +++ b/mk/sign.bat @@ -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 @@ -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.