From 82fcda5832cbc098be5fe7b5ac55fb7cf68242ba Mon Sep 17 00:00:00 2001 From: Georg Koppen Date: Tue, 20 Jan 2015 13:00:36 +0000 Subject: [PATCH] Bug 14304: Document stripping of MAR files We add a section explaining how to verify that the signed MAR files we ship are essentially the ones our Gitian setup produced. --- docs/en/verifying-signatures.wml | 58 ++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/docs/en/verifying-signatures.wml b/docs/en/verifying-signatures.wml index b9eeb03e..84cda7ef 100644 --- a/docs/en/verifying-signatures.wml +++ b/docs/en/verifying-signatures.wml @@ -186,8 +186,8 @@

Verifying sha256sums (advanced)


-

Build reproducibility is a security +

Build reproducibility is a security property of Tor Browser 3.0 and later. Anyone can build Tor Browser on their own machine and produce a binary that is bit-for-bit identical to the binary we offer on the download page. @@ -201,22 +201,22 @@

- -

Scripts - to automate - these steps have been written, but to use them you will need to modify + +

Scripts + to automate + these steps have been written, but to use them you will need to modify them yourself with the latest Tor Browser filename.

- +
+ +

+ Verifying MAR files we ship (advanced)

+
+

Starting with Tor Browser 4.5a4 we sign our MAR files which helps + securing our update process. The downside of this is the need for additional + instructions to verify that the MAR files we ship are indeed the ones we + produced with our Gitian setup.

+ +

Assuming the verification happens on a Linux computer one first needs the + mar-tools-linux*.zip out of the gitian-builder/inputs + directory to remove the embedded signature(s). The steps to get the unsigned + MAR file on a 64 bit Linux are

+
+    cd /path/to/MAR/file
+    unzip /path/to/gitian-builder/inputs/mar-tools-linux64.zip
+    mar-tools/signmar -r your-signed-mar-file.mar your-unsigned-mar-file.mar
+

Now you can compare the SHA256 sum of your-unsigned-mar-file.mar + with the one provided in the sha265sums.txt or + sha256sums.incremental.txt as outlined in Verifying + sha256sums (advancded) above.

+