Skip to content

prosticoco/ca_core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation (Without using VM)

Install MySQL

  1. install the following package :

    sudo apt-get install mysql-server

    You will be prompted to choose a root password

  2. Install the CoreCA database (empty) :

    sh scripts/setup_mysql.sh <DB Root Password>

Install Python dependencies

  1. Ensure pip and python3.* are installed.

  2. Install a virtual environment :

    sudo apt-get install python3.*-venv 
  3. Setup virtual environment :

    python3.* -m venv venv 
    source venv/bin/activate
  4. Install dependencies :

    pip install -r requirements.txt

    This is not guaranteed to work on all systems, other python dependencies might need to be installed

Running the Server

Default run

./run

Default values for parameters :

  • port : 5001
  • ip : 127.0.0.1
  • user : root
  • host : localhost
  • db : coreCA
  • pwd : toor
  • cap12 : p12/ca.p12
  • crl : crl/crl.pem
  • empfolder : p12 (must be in directoy ca_core)
  • p12pass : default_password
  • cert : keys/server_certificate.crt
  • sk : keys/server_private_key.key
  • newkeys : specify if a new CA signing key pair is needed.
  • newcrl : specify if a new CRL must be generated

Parameters in bold characters should not be tweaked. In most cases a new server key (!= CA p12 key) will have to be generated :

cd keys/
./genkeyscert.sh

When prompted a common name, the ip address of the server must be specified. if the ip is different than 127.0.0.1, then the ip parameter must be specified when running the server.

VM

A VM is available at : N/A

Everything should be already installed on it hence should follow instructions above to run the server.

About

CA Core for ASL Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published