Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Tor Setup

Robert Misiorowski edited this page Aug 23, 2017 · 11 revisions

If you want to use Tor with OpenBazaar, there are a few steps that are needed to set it up properly.

Steps with a * are not needed on Linux, but if you skip them your Tor installation will not be fully secure.

Windows paths assume you are using the C drive. Replace C with the correct letter if a different drive is your primary hard drive.

  1. Downloaded Tor browser installer

  2. Install the Tor browser bundle

  3. Open a command/console window and navigate to the location of the Tor executable.

  • Windows: c:\Tor Browser\Browser\TorBrowser\Tor
  • Mac: /Applications/TorBrowser.app/Contents/MacOS/
  1. In the command window enter.
  • Windows: tor --hash-password enterpasswordhere | more (| more is required on Windows to output the hash)
  • Mac: ./tor.real --hash-password enterpasswordhere
  1. You should see an output like 16:BCF18231EF73AA2360B9407F006633D54437D2F8EA9359C80122B0CAB0 Copy that output. Also copy the password you used to generate it. You may want to paste both into a text editor so you can use them in later steps.

  2. Open your torrc file in a text editor.

  • Windows: c:\Tor Browser\Browser\TorBrowser\Data\Tor
  • Mac: ~/Library/Application Support/TorBrowser-Data/Tor
  1. In the torrc file, add these lines:
ControlPort 9051
CookieAuthentication 0
HashedControlPassword 16:BCF18231EF73AA2360B9407F006633D54437D2F8EA9359C80122B0CAB0

On the HashedControlPassword line, use the generated hash you copied in step 5. When you are done save the file.

  1. Ensure no OB server is running.

  2. Start your Tor browser.

  3. Run the OpenBazaar application. It will detect that Tor was running. Check the use Tor box, and then click the save button.

Once that completes, the OpenBazaar app will attempt to start the server for a while, and eventually fail. Turn off the app and go to the next step.

  1. In the OpenBazaar data folder, open the config file in a text editor.
  • Windows: C:\Users\YourUserName\OpenBazaar2.0
  • Mac: ~/Library/Application Support/OpenBazaar2.0

If Testing:

  • Windows: C:\Users\YourUserName\OpenBazaar2.0-testnet
  • Mac: ~/Library/Application Support/OpenBazaar2.0-testnet

In the config file, add the unhashed password from step 5 to this section and save it. "Tor-config": {  "Password": "your unhashed password",  "TorControl": "" },

  1. Run the OpenBazaar app again. It should connect to the server. Make sure you see the Tor symbol on the right side of the address bar in the OpenBazaar app.
Clone this wiki locally