zer.ooo-web/bin/setup
Corne Oppelaar ebddf2f031 [wip]
2016-06-12 19:48:33 +02:00

17 lines
No EOL
355 B
Bash
Executable file

#!/usr/bin/env bash
set -e;
BASEDIR="$(dirname $(realpath $0))/../";
cd "${BASEDIR}";
STORAGE="$(realpath "${BASEDIR}/storage/ca")";
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";