Skip to content

Installation

Erwin Castricum edited this page Sep 27, 2018 · 8 revisions

Installation

This is the installation guide for the secureweb project. The recommended distribution for building the project is Ubuntu 14.04 or higher.

Docker

There is also a docker image available for download. Saves time configuring the project. Download and install docker and simply run docker run -p 8080:8080 erwincas/secureweb (might need su privileges). After this you can connect on https://localhost:8080. If this does not work for some reason, get the ip address of the docker box by running docker inspect <container id> | grep "IPAddress" where the container id is the id you get from docker ps. You need to use the https protocol; otherwise, the site won't work

Auto build (Debian and ubuntu only)

The automated build script is available in the project root. Simply run sh build.sh and follow the instructions. Needs the sudo command package

Manual build

Requirements

All requirements (except libonion) can be satisfied by the apt-get util from debian.

  • libonion (see https://github.com/davidmoreno/onion for installation instructions)
    • libgnutls28-dev (For https support)
    • libgcrypt20-dev (For https support)
    • libsqlite3-dev (For database support)
    • libsodium-dev (For cryptography)
    • libpthread-stubs0-dev (For threading)
  • OpenSSL for certificate generating
  • CMake 3.5 or higher
  • This repository

Install guide

Don't forget to run sudo ldconfigafter installing the onion library.

git clone https://github.com/erwincas/secureweb_flyshop.git
cd secureweb_c
sh buildtools/generate_cert.sh
mkdir build
cd build
cmake ..
make
./Secure_Programming

After that connect to https://localhost:8080 to access the website. (Database creation takes around 5 seconds)

Clone this wiki locally