"Fossies" - the Fresh Open Source Software Archive

Member "src/Signing/sign_test.bat" (10 Oct 2018, 2706 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "sign_test.bat": 1.22_Source_vs_1.23_Source.

    1 PATH=%PATH%;%WSDK81%\bin\x86;C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
    2 set VC_VERSION=1.23-Hotfix-2
    3 set PFXNAME=TestCertificate\idrix_codeSign.pfx
    4 set PFXPASSWORD=idrix
    5 set PFXCA=TestCertificate\idrix_TestRootCA.crt
    6 set SHA256PFXNAME=TestCertificate\idrix_Sha256CodeSign.pfx
    7 set SHA256PFXPASSWORD=idrix
    8 set SHA256PFXCA=TestCertificate\idrix_SHA256TestRootCA.crt
    9 
   10 set SIGNINGPATH=%~dp0
   11 cd %SIGNINGPATH%
   12 
   13 call "..\..\doc\chm\create_chm.bat"
   14 
   15 cd %SIGNINGPATH%
   16 
   17 rem sign using SHA-1
   18 signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac %PFXCA% /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\veracrypt.sys" "..\Release\Setup Files\veracrypt-x64.sys" "..\Release\Setup Files\VeraCrypt.exe" "..\Release\Setup Files\VeraCrypt Format.exe" "..\Release\Setup Files\VeraCryptExpander.exe" "..\Release\Setup Files\VeraCrypt-x64.exe" "..\Release\Setup Files\VeraCrypt Format-x64.exe" "..\Release\Setup Files\VeraCryptExpander-x64.exe"
   19 
   20 rem sign using SHA-256
   21 signtool sign /v /a /f %SHA256PFXNAME% /p %SHA256PFXPASSWORD% /ac %SHA256PFXCA% /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "..\Release\Setup Files\veracrypt.sys" "..\Release\Setup Files\veracrypt-x64.sys" "..\Release\Setup Files\VeraCrypt.exe" "..\Release\Setup Files\VeraCrypt Format.exe" "..\Release\Setup Files\VeraCryptExpander.exe" "..\Release\Setup Files\VeraCrypt-x64.exe" "..\Release\Setup Files\VeraCrypt Format-x64.exe" "..\Release\Setup Files\VeraCryptExpander-x64.exe"
   22 
   23 cd "..\Release\Setup Files\"
   24 
   25 copy ..\..\LICENSE .
   26 copy ..\..\License.txt .
   27 copy ..\..\NOTICE .
   28 
   29 del *.xml
   30 rmdir /S /Q Languages
   31 mkdir Languages
   32 copy /V /Y ..\..\..\Translations\*.xml Languages\.
   33 del Languages.zip
   34 7z a -y Languages.zip Languages
   35 
   36 rmdir /S /Q docs
   37 mkdir docs\html\en
   38 mkdir docs\EFI-DCS
   39 copy /V /Y ..\..\..\doc\html\* docs\html\en\.
   40 copy "..\..\..\doc\chm\VeraCrypt User Guide.chm" docs\.
   41 copy "..\..\..\doc\EFI-DCS\*.pdf" docs\EFI-DCS\.
   42 
   43 del docs.zip
   44 7z a -y docs.zip docs
   45 
   46 "VeraCrypt Setup.exe" /p
   47 
   48 del LICENSE
   49 del License.txt
   50 del NOTICE
   51 del "VeraCrypt User Guide.chm"
   52 
   53 del Languages.zip
   54 del docs.zip
   55 rmdir /S /Q Languages
   56 rmdir /S /Q docs
   57 
   58 cd %SIGNINGPATH%
   59 
   60 rem sign using SHA-1
   61 signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac %PFXCA% /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt Setup %VC_VERSION%.exe"
   62 
   63 rem sign using SHA-256
   64 signtool sign /v /a /f %SHA256PFXNAME% /p %SHA256PFXPASSWORD% /ac %SHA256PFXCA% /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "..\Release\Setup Files\VeraCrypt Setup %VC_VERSION%.exe"
   65 
   66 pause