
Openssl req -x509 -new -nodes -key rootCA.key -days 1024 -out rootCA.crt -subj "/C=DE/ST=Germany/L=Walldorf/O=SAP SE/OU=Tools/CN=rootCA" Start by creating a root certificate and keys: openssl genrsa -out rootCA.key 4096 OpenBazaar developers have decided to require running the server over SSL connection. #3 Create a self-signed certificate and set up SSL This will be your username and password to use in OpenBazaar client app. Next, set login credentials to access OpenBazaar API: go run $GOPATH/src//OpenBazaar/openbazaar-go/openbazaard.go setapicreds If your server runs behind a dynamic IP address, set your server to listen on 0.0.0.0 instead: sed -i -E "s|(\"Gateway\": \"/ip4/)127.0.0.1|\10.0.0.0|" config In the case you have a static IP, run this command: sed -i -E "s|(\"Gateway\": \"/ip4/)127.0.0.1|\1$(dig +short config I recommend you to go through all of them manually but for now, we will only change those necessary.įirst, we need to set OpenBazaar to run on a specific IP address. In the next few steps, we will have to change some configuration variables. Go to the newly created OpenBazaar folder: cd ~/.openbazaar2.0 It will also create a data folder with configuration and other files. Wait a bit until you see a message that the server is running. go run $GOPATH/src//OpenBazaar/openbazaar-go/openbazaard.go start Run the server to check if it works correctly. The code will be downloaded to your ~/go folder. Source ~/.profile #2 Install and set up OpenBazaar-goįetch " openbazaar-go" from the Github repository: go get /OpenBazaar/openbazaar-go profileĮxport Go path: echo "export GOPATH=$HOME/go" >.

profileĮcho "export PATH=$PATH:/usr/local/go/bin" >. On Mac OS X, you can use brew to install packages in a Linux fashion.

profilesource ~/.profile #1b Install dependencies on Mac OS X Now create " go" folder in your home directory: mkdir ~/goĮxport local Go paths and load them: echo "export GOPATH=$HOME/go" >. The options are: 386, amd64, armv6l, ppc64le and s390x.Ĭheck that the system recognizes your newly installed Go: /usr/local/go/bin/go version You can download a different build based on your architecture. Install it directly from Google instead of your system's repository: cd ~ Next, make sure you have Go language version 1.8.x. Install build tools first: sudo apt-get update
