forked from zer.ooo/web
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
329 B
Plaintext
16 lines
329 B
Plaintext
9 years ago
|
#!/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;
|