057d8e66b7dfff2598fa499e4d5477eba5f63716
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) ## translation metadata
Roger Dingledine looks like we never set the...

Roger Dingledine authored 13 years ago

2) # Revision: $Revision$
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

3) # Translation-Priority: 2-medium
4) 
5) #include "head.wmi" TITLE="Tor Project: Verifying Signatures" CHARSET="UTF-8"
6) <div id="content" class="clearfix">
7)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

8)     <a href="<page index>">Home &raquo; </a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

9)     <a href="<page docs/verifying-signatures>">Verifying Signatures</a>
10)   </div>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

11)   <div id="maincol">
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

12)     <h1>How to verify signatures for packages</h1>
traumschule verification: add TOC

traumschule authored 5 years ago

13) 
14) <!-- START TOC -->
15)     <ol>
16)       <li><a href="#Why">What is a signature and why should I check it?</a></li>
17)       <li><a href="#Where">Where do I get the signatures and the keys that made them?</a></li>
18)       <li><a href="#Windows">Windows</a></li>
19)       <li><a href="#MacosLinux">Mac OS X and Linux</a></li>
20)       <li><a href="#BuildVerification">Verifying sha256sums (advanced)</a></li>
21)       <li><a href="#Scripts">Scripts</a></li>
22)       <li><a href="#MARVerification">Verifying MAR files we ship (advanced)</a></li>
23)     </ol>
24) <!-- END TOC -->
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

25)     <hr>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

26) 
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

27)     <p>Digital signature is a process ensuring that a certain package was
28)     generated by its developers and has not been tampered with. Below we explain
29)     why it is important and how to verify that the Tor program you download is
30)     the one we have created and has not been modified by some attacker.</p>
31) 
32)     <p>Digital signature is a cryptographic mechanism. If you want to learn more
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

33)     about how it works see <a href="https://en.wikipedia.org/wiki/Digital_signature">
34)     https://en.wikipedia.org/wiki/Digital_signature</a>.</p>
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

35) 
traumschule verification: add TOC

traumschule authored 5 years ago

36)     <a name="Why"></a>
Roger Dingledine add some introduction parag...

Roger Dingledine authored 12 years ago

37)     <h3>What is a signature and why should I check it?</h3>
38)     <hr>
39) 
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

40)     <p>How do you know that the Tor program you have is really the one we made?
41)     Digital signatures ensure that the package you are downloading was created by
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

42)     our developers. It uses a cryptographic mechanism to ensure that the software package
43)     that you have just downloaded is authentic. </p>
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

44) 
45)     <p>For many Tor users it is important to verify that the Tor software is authentic
46)     as they have very real adversaries who might try to give them a fake version
47)     of Tor.</p>
Roger Dingledine add some introduction parag...

Roger Dingledine authored 12 years ago

48) 
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

49)     <p>If the Tor package has been modified by some attacker it is not safe to use.
50)     It doesn't matter how secure and anonymous Tor is if you're not running the real Tor.</p>
51) 
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

52)     <p>Before you go ahead and download something, there are a few extra steps you
53)     should take to make sure you have downloaded an authentic version of Tor.</p>
54) 
55)     <h4>Always download Tor from torproject.org</h4>
56) 
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

57)     <p>There are a variety of attacks that can be used to make you download a fake
58)     version of Tor. For example, an attacker could trick you into thinking some other
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

59)     website is a great place to download Tor. You should
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

60)     always download Tor from <a href="https://www.torproject.org"><b>https</b>://www.torproject.org/</a>.</p>
61) 
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

62)     <h4>Always make sure you are browsing over https</h4>
63) 
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

64)     <p><a href="https://www.torproject.org">https://www.torproject.org/</a> uses https.
65)     Https is the secure version of the http protocol which uses encryption and authentication between your
66)     browser and the website. This makes it much harder for the attacker
Roger Dingledine add some introduction parag...

Roger Dingledine authored 12 years ago

67)     to modify your download. But it's not perfect. Some places in the
hiromipaw Started updating verify sig...

hiromipaw authored 6 years ago

68)     world block the Tor website, making users to download Tor <a href="<page
69)     docs/faq>#GetTor">somewhere else</a>.</p>
70) 
71)     <p>Large companies sometimes force employees to use a modified browser,
Roger Dingledine add some introduction parag...

Roger Dingledine authored 12 years ago

72)     so the company can listen in on all their browsing. We've even <a
73)     href="https://blog.torproject.org/blog/diginotar-debacle-and-what-you-should-do-about-it">seen</a>
74)     attackers who have the ability to trick your browser into thinking
75)     you're talking to the Tor website with https when you're not.</p>
76) 
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

77)     <h4>Always verify signatures of packages you have downloaded</h4>
78) 
Roger Dingledine add some introduction parag...

Roger Dingledine authored 12 years ago

79)     <p>Some software sites list <a
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

80)     href="https://en.wikipedia.org/wiki/Cryptographic_hash_function">sha1
Roger Dingledine add some introduction parag...

Roger Dingledine authored 12 years ago

81)     hashes</a> alongside the software on their website, so users can
82)     verify that they downloaded the file without any errors. These
83)     "checksums" help you answer the question "Did I download this file
84)     correctly from whoever sent it to me?" They do a good job at making
85)     sure you didn't have any random errors in your download, but they
86)     don't help you figure out whether you were downloading it from the
87)     attacker. The better question to answer is: "Is this file that I
88)     just downloaded the file that Tor intended me to get?"</p>
89) 
traumschule verification: add TOC

traumschule authored 5 years ago

90)     <a name="Where"></a>
Roger Dingledine add another heading on veri...

Roger Dingledine authored 12 years ago

91)     <h3>Where do I get the signatures and the keys that made them?</h3>
92)     <hr>
Andrew Lewman revert mttp's changes.

Andrew Lewman authored 10 years ago

93)     <p>Each file on <a href="<page download/download>">our download
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

94)     page</a> is accompanied by a file with the same name as the
95)     package and the extension ".asc". These .asc files are GPG
96)     signatures. They allow you to verify the file you've downloaded
97)     is exactly the one that we intended you to get. For example,
Georg Koppen Bug 13407: Update signature...

Georg Koppen authored 9 years ago

98)     torbrowser-install-<version-torbrowserbundle>_en-US.exe is accompanied by
99)     torbrowser-install-<version-torbrowserbundle>_en-US.exe.asc. For a list
Andrew Lewman add the correct >.

Andrew Lewman authored 10 years ago

100)     of which developer signs which package, see our <a href="<page docs/signing-keys>">signing keys</a> page.</p>
hiromipaw Add short paragraph on digi...

hiromipaw authored 7 years ago

101) 
hiromipaw Fix typos in paragraph abou...

hiromipaw authored 7 years ago

102)     <p>We now show how you can verify the downloaded file's digital signature on
103)     different operating systems. Please notice that a signature is dated the moment
hiromipaw Add short paragraph on digi...

hiromipaw authored 7 years ago

104)     the package has been signed. Therefore every time a new file is uploaded a new
105)     signature is generated with a different date. As long as you have verified the
106)     signature you should not worry that the reported date may vary.
107)     </p>
108) 
traumschule verification: add TOC

traumschule authored 5 years ago

109)     <a name="Windows"></a>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

110)     <h3>Windows</h3>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

111)     <hr>
hiromipaw Edits instruction on how to...

hiromipaw authored 6 years ago

112)     <p>First of all you need to have GnuPG installed before you can verify signatures.
113)     Download it from <a href="https://gpg4win.org/download.html">https://gpg4win.org/download.html</a>.</p>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

114)     <p>Once it's installed, use GnuPG to import the key that signed your
hiromipaw Edits instruction on how to...

hiromipaw authored 6 years ago

115)     package. In order to verify the signature you will need to type a few commands
116)     in windows command-line, <i>cmd.exe</i>.
Arthur Edelstein Bug 20465: Call it 'Tor Bro...

Arthur Edelstein authored 7 years ago

117)     <p>The Tor Browser team signs Tor Browser releases. Import its key
Georg Koppen Bug 13407: Update signature...

Georg Koppen authored 9 years ago

118)     (0x4E2C6E8793298290) by starting <i>cmd.exe</i> and typing:</p>
traumschule remove full path from windo...

traumschule authored 5 years ago

119)     <pre>gpg.exe --keyserver pool.sks-keyservers.net --recv-keys 0x4E2C6E8793298290</pre>
Matt Pagan

Matt Pagan authored 10 years ago

120)     <p>After importing the key, you can verify that the fingerprint
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

121)     is correct:</p>
traumschule remove full path from windo...

traumschule authored 5 years ago

122)     <pre>gpg.exe --fingerprint 0x4E2C6E8793298290</pre>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

123)     <p>You should see:</p>
124)     <pre>
traumschule update gpg fingerprint outp...

traumschule authored 5 years ago

125) pub   rsa4096/0x4E2C6E8793298290 2014-12-15 [C] [expires: 2020-08-24]
126)       Key fingerprint = EF6E 286D DA85 EA2A 4BA7  DE68 4E2C 6E87 9329 8290
127) uid                   [ unknown] Tor Browser Developers (signing key) <torbrowser@torproject.org>
128) sub   rsa4096/0xD1483FA6C3C07136 2016-08-24 [S] [expires: 2018-08-24]
129)       Key fingerprint = A430 0A6B C93C 0877 A445  1486 D148 3FA6 C3C0 7136
130) sub   rsa4096/0xEB774491D9FF06E2 2018-05-26 [S] [expires: 2020-09-12]
131)       Key fingerprint = 1107 75B5 D101 FB36 BC6C  911B EB77 4491 D9FF 06E2
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

132) </pre>
133)     <p>To verify the signature of the package you downloaded, you will need
134)     to download the ".asc" file as well. Assuming you downloaded the
135)     package and its signature to your Desktop, run:</p>
traumschule remove full path from windo...

traumschule authored 5 years ago

136)     <pre>gpg.exe --verify C:\Users\Alice\Desktop\torbrowser-install-<version-torbrowserbundle>_en-US.exe.asc</pre>
hiromipaw Small improvements to verif...

hiromipaw authored 6 years ago

137)     <p>Please substitute "Alice" with your own username.</p>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

138)     <p>The output should say "Good signature": </p>
139)     <pre>
traumschule docs/verifying-signatures:...

traumschule authored 5 years ago

140) gpg: assuming signed data in 'torbrowser-install-<version-torbrowserbundle>_en-US.exe'
141) gpg: Signature made Wed 15 Nov 2017 05:52:38 PM CET
142) gpg:                using RSA key 0xD1483FA6C3C07136
143) gpg: Good signature from "Tor Browser Developers (signing key) <torbrowser@torproject.org>" [unknown]
144) gpg: WARNING: This key is not certified with a trusted signature!
145) gpg:          There is no indication that the signature belongs to the owner.
146) Primary key fingerprint: EF6E 286D DA85 EA2A 4BA7  DE68 4E2C 6E87 9329 8290
147)      Subkey fingerprint: A430 0A6B C93C 0877 A445  1486 D148 3FA6 C3C0 7136
Georg Koppen Bug 15253: Add Tor Browser...

Georg Koppen authored 9 years ago

148)     <p>Currently valid subkey fingerprints are:
149)     <pre>
150)     5242 013F 02AF C851 B1C7  36B8 7017 ADCE F65C 2036
Georg Koppen Add new subkeys for Tor Bro...

Georg Koppen authored 7 years ago

151)     BA1E E421 BBB4 5263 180E  1FC7 2E1A C68E D408 14E0
152)     A430 0A6B C93C 0877 A445  1486 D148 3FA6 C3C0 7136</pre></p>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

153)     <p>
154)     Notice that there is a warning because you haven't assigned a trust
155)     index to this person. This means that GnuPG verified that the key made
156)     that signature, but it's up to you to decide if that key really belongs
157)     to the developer. The best method is to meet the developer in person and
158)     exchange key fingerprints.
159)     </p>
hiromipaw Add short paragraph on digi...

hiromipaw authored 7 years ago

160) 
traumschule verification: add TOC

traumschule authored 5 years ago

161)     <a name="MacosLinux"></a>
ilv Combined osx and linux inst...

ilv authored 9 years ago

162)     <h3>Mac OS X and Linux</h3>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

163)     <hr>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

164) 
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

165)     <p>You need to have GnuPG installed before you can verify
ilv Combined osx and linux inst...

ilv authored 9 years ago

166)     signatures. If you are using Mac OS X, you can install it from <a
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

167)     href="https://www.gpgtools.org/">https://www.gpgtools.org/</a>. If you
ilv Combined osx and linux inst...

ilv authored 9 years ago

168)     are using Linux, then it's probably you already have GnuPG in your
169)     system, as most Linux distributions come with it preinstalled.
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

170)     </p>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

171) 
ilv Combined osx and linux inst...

ilv authored 9 years ago

172)     <p>The next step is to use GnuPG to import the key that signed
Arthur Edelstein Bug 20465: Call it 'Tor Bro...

Arthur Edelstein authored 7 years ago

173)     your package. The Tor Browser team signs Tor Browser releases. Import its
Nicolas Vigier Bug 13407: Finish updating...

Nicolas Vigier authored 9 years ago

174)     key (0x4E2C6E8793298290) by starting the terminal (under "Applications"
ilv Combined osx and linux inst...

ilv authored 9 years ago

175)     in Mac OS X) and typing:</p>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

176) 
Roger Dingledine weasel says specifying x-hk...

Roger Dingledine authored 7 years ago

177)     <pre>gpg --keyserver pool.sks-keyservers.net --recv-keys 0x4E2C6E8793298290</pre>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

178) 
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

179)     <p>After importing the key, you can verify that the fingerprint
180)     is correct:</p>
181) 
Georg Koppen Bug 13407: Update signature...

Georg Koppen authored 9 years ago

182)     <pre>gpg --fingerprint 0x4E2C6E8793298290</pre>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

183) 
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

184)     <p>You should see:</p>
185)     <pre>
traumschule update gpg fingerprint outp...

traumschule authored 5 years ago

186) pub   rsa4096/0x4E2C6E8793298290 2014-12-15 [C] [expires: 2020-08-24]
187)       Key fingerprint = EF6E 286D DA85 EA2A 4BA7  DE68 4E2C 6E87 9329 8290
188) uid                   [ unknown] Tor Browser Developers (signing key) <torbrowser@torproject.org>
189) sub   rsa4096/0xD1483FA6C3C07136 2016-08-24 [S] [expires: 2018-08-24]
190)       Key fingerprint = A430 0A6B C93C 0877 A445  1486 D148 3FA6 C3C0 7136
191) sub   rsa4096/0xEB774491D9FF06E2 2018-05-26 [S] [expires: 2020-09-12]
192)       Key fingerprint = 1107 75B5 D101 FB36 BC6C  911B EB77 4491 D9FF 06E2
193)     </pre>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

194)     <p>To verify the signature of the package you downloaded, you will need
195)     to download the ".asc" file as well. Assuming you downloaded the
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

196)     package and its signature to your Downloads folder, run:</p>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

197) 
ilv Fixed version tags and wind...

ilv authored 9 years ago

198)     <strong>For Mac OS X users</strong>:<br />
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

199)     <pre>gpg --verify ~/Downloads/TorBrowser-<version-torbrowserbundleosx64>-osx64_en-US.dmg{.asc*,}</pre>
200) 
hiromipaw Make 64bit instructions def...

hiromipaw authored 7 years ago

201)     <strong>For Linux users</strong> (change 64 to 32 if you have the 32-bit package):<br />
traumschule docs/verifying-signatures:...

traumschule authored 5 years ago

202)     <pre>gpg --verify tor-browser-linux64-<version-torbrowserbundlelinux64>_en-US.tar.xz.asc</pre>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

203) 
Georg Koppen Bug 15253: Add Tor Browser...

Georg Koppen authored 9 years ago

204)     <p>The output should say "Good signature":</p>
Roger Dingledine clear trailing whitespaces;...

Roger Dingledine authored 13 years ago

205) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

206)     <pre>
traumschule docs/verifying-signatures:...

traumschule authored 5 years ago

207) gpg: assuming signed data in 'tor-browser-linux64-<version-torbrowserbundlelinux64>_en-US.tar.xz'
208) gpg: Signature made Wed 15 Nov 2017 05:52:38 PM CET
209) gpg:                using RSA key 0xD1483FA6C3C07136
210) gpg: Good signature from "Tor Browser Developers (signing key) <torbrowser@torproject.org>" [unknown]
211) gpg: WARNING: This key is not certified with a trusted signature!
212) gpg:          There is no indication that the signature belongs to the owner.
213) Primary key fingerprint: EF6E 286D DA85 EA2A 4BA7  DE68 4E2C 6E87 9329 8290
214)      Subkey fingerprint: A430 0A6B C93C 0877 A445  1486 D148 3FA6 C3C0 7136
215)     </pre>
216)     <p> Currently valid subkey fingerprints are:
Georg Koppen Bug 15253: Add Tor Browser...

Georg Koppen authored 9 years ago

217)     <pre>
218)     5242 013F 02AF C851 B1C7  36B8 7017 ADCE F65C 2036
Georg Koppen Add new subkeys for Tor Bro...

Georg Koppen authored 7 years ago

219)     BA1E E421 BBB4 5263 180E  1FC7 2E1A C68E D408 14E0
220)     A430 0A6B C93C 0877 A445  1486 D148 3FA6 C3C0 7136</pre></p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

221)     <p>
222)     Notice that there is a warning because you haven't assigned a trust
223)     index to this person. This means that GnuPG verified that the key made
224)     that signature, but it's up to you to decide if that key really belongs
225)     to the developer. The best method is to meet the developer in person and
226)     exchange key fingerprints.
227)     </p>
Georg Koppen Bug 15253: Add Tor Browser...

Georg Koppen authored 9 years ago

228) 
ilv Combined osx and linux inst...

ilv authored 9 years ago

229)     <p>
230)     If you're a Linux user and you're using the <b>Debian</b> Tor (not Tor
231)     Browser) packages, you should read the instructions on <a
232)     href="<page docs/debian>#packages">importing these keys to apt</a>.
233)     If you're using the <b>RPMs</b> (for Tor, not Tor Browser), you can
234)     manually verify the signatures on the RPM packages by
235)     <pre>rpm -K filename.rpm</pre>
236)     </p>
Roger Dingledine explain that linux users ar...

Roger Dingledine authored 12 years ago

237) 
238)     <p>See <a
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

239)     href="https://www.gnupg.org/documentation/">https://www.gnupg.org/documentation/</a>
ilv Added missing hr and s/GPG/...

ilv authored 9 years ago

240)     to learn more about GnuPG.</p>
241) 
242)     <hr>
Roger Dingledine the verifying signatures pa...

Roger Dingledine authored 12 years ago

243) 
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

244)     <a id="BuildVerification"></a>
245)     <h3><a class="anchor" href="#BuildVerification">
246)     Verifying sha256sums (advanced)</a></h3>
247)     <hr>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

248)     <p>Build reproducibility is a <a
249)        href="https://blog.torproject.org/blog/deterministic-builds-part-one-cyberwar-and-global-compromise">security
Sebastian Hahn Remove some whitespace at eol

Sebastian Hahn authored 9 years ago

250)        property</a> of Tor Browser 3.0 and later. Anyone can build
251)        Tor Browser on their own machine and produce a binary that is
252)        bit-for-bit identical to the binary we offer on the download page.
Arthur Edelstein Bug 20465: Call it 'Tor Bro...

Arthur Edelstein authored 7 years ago

253)        Fortunately, it is not necessary for everyone to build Tor Browser
Sebastian Hahn Remove some whitespace at eol

Sebastian Hahn authored 9 years ago

254)        locally to get this security. Verifying and comparing the signed list
255)        of <a href="https://en.wikipedia.org/wiki/Cryptographic_hash">hashes</a>
256)        will confirm that multiple people have built Tor Browsers
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

257)        identical to the download.</p>
258) 
259)       <p>The steps below walk through this process:</p>
260) 
261)     <ul>
Georg Koppen Update advanced verificatio...

Georg Koppen authored 8 years ago

262)       <li>Download the Tor Browser package, the <tt>sha256sums-unsigned-build.txt</tt>
263)       file, and the <tt>sha256sums-unsigned-build.txt.asc</tt> signature file.
264)       They can all be found in the same directory under
265)       <a href="https://www.torproject.org/dist/torbrowser/">
hiromipaw Make 64bit instructions def...

hiromipaw authored 7 years ago

266)       https://www.torproject.org/dist/torbrowser/</a>, for example in '<version-torbrowserbundlelinux64>'
267)       for Tor Browser <version-torbrowserbundlelinux64>.</li>
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

268)       <li>In case your operating system is adding the .txt extension
269)       automatically to the SHA256 sums signature file strip it again by running
270)       <pre>mv sha256sums-unsigned-build.txt.asc.txt sha256sums-unsigned-build.txt.asc</pre>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

271)       <li>Retrieve the signers' GPG keys. This can be done from the command
272)       line by entering something like
Georg Koppen Bug 15598: Update documenta...

Georg Koppen authored 9 years ago

273)       <pre>gpg --keyserver keys.mozilla.org --recv-keys 0x4E2C6E8793298290</pre>
274)       (This will bring you the public part of the Tor Browser developers'
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

275)        signing key. Other developers' key IDs can be found on
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

276)       <a href="<page docs/signing-keys>">this
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

277)       page</a>.)</li>
Georg Koppen Update advanced verificatio...

Georg Koppen authored 8 years ago

278)       <li>Verify the sha256sums-unsigned-build.txt file by executing this
279)       command:
280)       <pre>gpg --verify sha256sums-unsigned-build.txt.asc sha256sums-unsigned-build.txt</pre></li>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

281)       <li>You should see a message like "Good signature from &lt;DEVELOPER
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

282)       NAME&gt;". If you don't, there is a problem. Try these steps again.</li>
Georg Koppen Bug 15598: Update documenta...

Georg Koppen authored 9 years ago

283)       <li>If you want to verify a Windows Tor Browser package you need to first
Georg Koppen Add delcert.exe as signatur...

Georg Koppen authored 9 years ago

284)       strip off the authenticode signature of it. Tools that can be used for
285)       this purpose are <a href="http://osslsigncode.sourceforge.net">osslsigncode</a> and
286)       <a href="http://forum.xda-developers.com/showthread.php?t=416175">delcert.exe</a>.
287)       Assuming you have built e.g. <tt>osslsigncode</tt> on a Linux computer you can enter
Georg Koppen Bug 15598: Update documenta...

Georg Koppen authored 9 years ago

288)       <pre>/path/to/your/osslsigncode remove-signature &#92;
289)         /path/to/your/&lt;TOR BROWSER FILE NAME&gt;.exe &lt;TOR BROWSER FILE NAME&gt;.exe</pre></li>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

290)       <li>Now you can take the sha256sum of the Tor Browser package. On
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

291)       Windows you can use the <a href="http://md5deep.sourceforge.net/">
292)       hashdeep utility</a> and run
293)       <pre>C:\location\where\you\saved\hashdeep -c sha256sum &lt;TOR BROWSER FILE NAME&gt;.exe</pre>
Georg Koppen Bug 20954: Checking OS X bu...

Georg Koppen authored 7 years ago

294)       <p>On Linux you can run</p>
295)       <pre>sha256sum &lt;TOR BROWSER FILE NAME&gt;.tar.gz</pre>
296)       without having to download a utility. Note: this does not work for OS X
297)       yet due to Apple's codesigning requirement.</li>
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

298)       <li>You will see a string of letters and numbers.</li>
Georg Koppen Update advanced verificatio...

Georg Koppen authored 8 years ago

299)       <li>Open <tt>sha256sums-unsigned-build.txt</tt> in a text editor.</li>
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

300)       <li>Locate the name of the Tor Browser file you downloaded.</li>
301)       <li>Compare the string of letters and numbers to the left of your
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

302)       filename with the string of letters and numbers that appeared
303)       on your command line. If they match, you've successfully verified the
304)       build.</li>
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

305)     </ul>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

306) 
traumschule verification: add TOC

traumschule authored 5 years ago

307)     <a id="Scripts"></a>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

308)     <p><a href="https://github.com/isislovecruft/scripts/blob/master/verify-gitian-builder-signatures">Scripts</a>
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

309)     to <a href="https://tor.stackexchange.com/questions/648/how-to-verify-tor-browser-bundle-tbb-3-x">automate</a>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

310)     these steps have been written, but to use them you will need to modify
Matt Pagan Replaced "the Tor Browser B...

Matt Pagan authored 9 years ago

311)     them yourself with the latest Tor Browser filename.</p>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

312) 
313)     <hr>
314) 
315)     <a id="MARVerification"></a>
316)     <h3><a class="anchor" href="#MARVerification">
317)     Verifying MAR files we ship (advanced)</a></h3>
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

318)     <hr>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

319)     <p>Starting with Tor Browser 4.5a4 we sign our MAR files which helps
320)     securing our update process. The downside of this is the need for additional
321)     instructions to verify that the MAR files we ship are indeed the ones we
Georg Koppen Bug 24027: We moved from Gi...

Georg Koppen authored 6 years ago

322)     produced with our rbm setup.</p>
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

323) 
324)     <p>Assuming the verification happens on a Linux computer one first needs the
325)     <tt>mar-tools-linux*.zip</tt> out of the <tt>gitian-builder/inputs</tt>
326)     directory to remove the embedded signature(s). The steps to get the unsigned
327)     MAR file on a 64 bit Linux are</p>
328)     <pre>
329)     cd /path/to/MAR/file
330)     unzip /path/to/gitian-builder/inputs/mar-tools-linux64.zip
Georg Koppen Update signature verificati...

Georg Koppen authored 8 years ago

331)     export LD_LIBRARY_PATH=/path/to/MAR/file/mar-tools
Georg Koppen Bug 14304: Document strippi...

Georg Koppen authored 9 years ago

332)     mar-tools/signmar -r your-signed-mar-file.mar your-unsigned-mar-file.mar</pre>
333)     <p>Now you can compare the SHA256 sum of <tt>your-unsigned-mar-file.mar</tt>
Georg Koppen Update advanced verificatio...

Georg Koppen authored 8 years ago

334)     with the one provided in the <tt>sha265sums-unsigned-build.txt</tt> or
335)     <tt>sha256sums-unsigned-build.incremental.txt</tt> as outlined in
336)     <a href="#BuildVerification">Verifying sha256sums (advancded)</a> above.</p>
Matt Pagan Moved verification instruct...

Matt Pagan authored 9 years ago

337) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

338)   </div>
339)   <!-- END MAINCOL -->
340)   <div id = "sidecol">
341) #include "side.wmi"
342) #include "info.wmi"
343)   </div>
344)   <!-- END SIDECOL -->
345) </div>
346) <!-- END CONTENT -->