]> jfr.im git - z_archive/vpsm.git/blob - devtemp/certs/clean-all
Adding start of SSL-certificate-stuff. easy-rsa
[z_archive/vpsm.git] / devtemp / certs / clean-all
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
7 if [ "$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"
13 else
14 echo 'Please source the vars script first (i.e. "source ./vars")'
15 echo 'Make sure you have edited it to reflect your configuration.'
16 fi