-
Notifications
You must be signed in to change notification settings - Fork 186
Tor Setup
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.
-
Downloaded Tor browser installer
-
Install the Tor browser bundle
-
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/
-
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
-
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.
-
Open your torrc file in a text editor.
Windows c:\Tor Browser\Browser\TorBrowser\Data\Tor Mac ~/Library/Application Support/TorBrowser-Data/Tor
- 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.
-
Ensure no OB server is running.
-
Start your Tor browser.
-
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.
- 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": "" },
- 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.