VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Signing/sign_test.bat
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-11 00:31:10 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-11 00:32:20 +0200
commitbb2149aac87757aa27a22c42f45e82712d814205 (patch)
tree20c47b65c95e4fc1a9876e2ff4498865dedd06c2 /src/Signing/sign_test.bat
parent8e4a68af3bd74228be42727b372e6ae8733fc443 (diff)
downloadVeraCrypt-bb2149aac87757aa27a22c42f45e82712d814205.tar.gz
VeraCrypt-bb2149aac87757aa27a22c42f45e82712d814205.zip
Windows: add a test code-signing certificate and a batch file to sign binaries and the installer with it.
Diffstat (limited to 'src/Signing/sign_test.bat')
-rw-r--r--src/Signing/sign_test.bat25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Signing/sign_test.bat b/src/Signing/sign_test.bat
new file mode 100644
index 00000000..d7976828
--- /dev/null
+++ b/src/Signing/sign_test.bat
@@ -0,0 +1,25 @@
+PATH=%PATH%;%DDK%\bin\x86
+
+set PFXNAME=TestCertificate\idrix_codeSign.pfx
+set PFXPASSWORD=idrix
+
+signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac TestCertificate\idrix_TestRootCA.crt /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\veracrypt.sys"
+signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac TestCertificate\idrix_TestRootCA.crt /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\veracrypt-x64.sys"
+
+signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac TestCertificate\idrix_TestRootCA.crt /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt.exe"
+signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac TestCertificate\idrix_TestRootCA.crt /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt Format.exe"
+signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac TestCertificate\idrix_TestRootCA.crt /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCryptExpander.exe"
+
+cd "..\Release\Setup Files\"
+
+copy /V /Y ..\..\..\Translations\*.xml .
+
+"VeraCrypt Setup.exe" /p
+
+del *.xml
+
+cd "..\..\Signing"
+
+signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac TestCertificate\idrix_TestRootCA.crt /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt Setup 1.0f-2.exe"
+
+pause \ No newline at end of file