Skip to content

vpiscitello/brypt-server

Repository files navigation

Brypt Server

To build/run:

  1. Clone brypt-server into your ~/go/src directory
  2. If testing local: Add the following lines to your hosts file
  • 127.0.0.1 access.localhost
  • 127.0.0.1 bridge.localhost
  • 127.0.0.1 dashboard.localhost
  1. If testing local: Generate TLS certificate key pair and place in /config/ssl
  • Install "generate_cert" via "go install $GOROOT/src/crypto/tls/generate_cert.go"
    • May need "export $GOBIN=$GOROOT/bin"
  • Run "generate_cert -host=127.0.0.1,localhost,access.localhost,bridge.localhost,dashboard.localhost,brypt.com -ca -ecdsa-curve=P384"
  • Place "cert.pem" and "key.pem" in /config/ssl
  1. Run the following commands in brypt-server/
  • $make deps
  • $make add_deps
  • $make build
  1. To run use: $./bin/bserv
  2. If testing local: Run "curl -L -k -X GET http://access.localhost:3005"

Troubleshooting:

Permissions:

  • If getting permission errors during step 4, perform the following steps:
    1. Run $sudo su
    2. Source ~/.bashrc file
    3. Try running the command which failed again

Not a go package or not in GOPATH error: 1) $export name/go 2) "name" being something like /home/username/go

.bashrc File Configuration:

  • Include the following at the bottom of your bashrc file:

export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go export GOBIN=$GOROOT/bin

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •