web/bin/setup
Corne Oppelaar 6cf8f4c8ca [wip]
2016-04-05 02:19:21 +02:00

15 lines
329 B
Bash
Executable file

#!/usr/bin/env bash
BASEDIR="$(dirname $(realpath $0))/../";
cd $BASEDIR;
STORAGE=$(realpath "$BASEDIR/storage/ca");
mkdir -p $STORAGE;
mkdir -p $STORAGE/certs;
echo 01 > $STORAGE/serial;
echo 01 > $STORAGE/crl_serial;
touch $STORAGE/database;
touch $STORAGE/database.attr;
$BASEDIR/bin/create-ca $1;
$BASEDIR/bin/create-crl;