]> jfr.im git - z_archive/vpsm.git/blame - devtemp/certs/clean-all
Adding start of SSL-certificate-stuff. easy-rsa
[z_archive/vpsm.git] / devtemp / certs / clean-all
CommitLineData
dd71f1b5
JR
1#!/bin/sh
2
3# Initialize the $KEY_DIR directory.
4# Note that this script does a
5# rm -rf on $KEY_DIR so be careful!
6
7if [ "$KEY_DIR" ]; then
8 rm -rf "$KEY_DIR"
9 mkdir "$KEY_DIR" && \
10 chmod go-rwx "$KEY_DIR" && \
11 touch "$KEY_DIR/index.txt" && \
12 echo 01 >"$KEY_DIR/serial"
13else
14 echo 'Please source the vars script first (i.e. "source ./vars")'
15 echo 'Make sure you have edited it to reflect your configuration.'
16fi