"Fossies" - the Fresh Open Source Software Archive

Member "VeraCrypt_1.24-Update6/src/Signing/sign.bat" (11 Mar 2020, 3127 Bytes) of package /linux/misc/VeraCrypt_1.24-Update6.tar.gz:


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 latest Fossies "Diffs" side-by-side code changes report for "sign.bat": 1.24-Update5_vs_1.24-Update6.

    1 PATH=%PATH%;%WSDK81%\bin\x86;C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
    2 
    3 set VC_VERSION=1.24-Update6
    4 set SIGNINGPATH=%~dp0
    5 cd %SIGNINGPATH%
    6 
    7 call "..\..\doc\chm\create_chm.bat"
    8 
    9 cd %SIGNINGPATH%
   10 
   11 rem sign using SHA-1
   12 signtool sign /v /sha1 1FE67EF0455A9CC11433542FEC0A86DDD644B405 /ac DigiCert_High_Assurance_MS_Cross_Cert.crt /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\veracrypt.sys" "..\Release\Setup Files\veracrypt-x64.sys"
   13 signtool sign /v /sha1 1FE67EF0455A9CC11433542FEC0A86DDD644B405 /ac DigiCert_High_Assurance_Code_Signing_CA.cer /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\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"
   14 
   15 timeout /t 10
   16 
   17 rem sign using SHA-256
   18 signtool sign /v /sha1 04141E4EA6D9343CEC994F6C099DC09BDD8937C9 /ac GlobalSign_R3Cross.cer /as /fd sha256 /tr http://rfc3161timestamp.globalsign.com/advanced /td SHA256 "..\Release\Setup Files\veracrypt.sys" "..\Release\Setup Files\veracrypt-x64.sys"
   19 signtool sign /v /sha1 04141E4EA6D9343CEC994F6C099DC09BDD8937C9 /ac GlobalSign_SHA256_EV_CodeSigning_CA.cer /as /fd sha256 /tr http://rfc3161timestamp.globalsign.com/advanced /td SHA256 "..\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"
   20 
   21 
   22 cd "..\Release\Setup Files\"
   23 
   24 copy ..\..\LICENSE .
   25 copy ..\..\License.txt .
   26 copy ..\..\NOTICE .
   27 
   28 del *.xml
   29 rmdir /S /Q Languages
   30 mkdir Languages
   31 copy /V /Y ..\..\..\Translations\*.xml Languages\.
   32 del Languages.zip
   33 7z a -y Languages.zip Languages
   34 
   35 rmdir /S /Q docs
   36 mkdir docs\html\en
   37 mkdir docs\EFI-DCS
   38 copy /V /Y ..\..\..\doc\html\* docs\html\en\.
   39 copy "..\..\..\doc\chm\VeraCrypt User Guide.chm" docs\.
   40 copy "..\..\..\doc\EFI-DCS\*.pdf" docs\EFI-DCS\.
   41 
   42 del docs.zip
   43 7z a -y docs.zip docs
   44 
   45 "VeraCrypt Setup.exe" /p
   46 "VeraCrypt Portable.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 /sha1 1FE67EF0455A9CC11433542FEC0A86DDD644B405 /ac DigiCert_High_Assurance_Code_Signing_CA.cer /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt Setup %VC_VERSION%.exe" "..\Release\Setup Files\VeraCrypt Portable %VC_VERSION%.exe"
   62 
   63 timeout /t 10
   64 
   65 rem sign using SHA-256
   66 signtool sign /v /sha1 04141E4EA6D9343CEC994F6C099DC09BDD8937C9 /ac GlobalSign_SHA256_EV_CodeSigning_CA.cer /as /fd sha256 /tr http://rfc3161timestamp.globalsign.com/advanced /td SHA256 "..\Release\Setup Files\VeraCrypt Setup %VC_VERSION%.exe" "..\Release\Setup Files\VeraCrypt Portable %VC_VERSION%.exe"
   67 
   68 pause