summaryrefslogtreecommitdiff
path: root/genca.sh
diff options
context:
space:
mode:
Diffstat (limited to 'genca.sh')
-rwxr-xr-xgenca.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/genca.sh b/genca.sh
index 8178cea..3af90d5 100755
--- a/genca.sh
+++ b/genca.sh
@@ -6,6 +6,11 @@ SUPPLEMENTARY_CONFIG="$1"
. ./configure.sh
+if [ -e "$CA"/ca/"$CA".key ]; then
+ echo "$CA/ca/$CA.key already exists!"
+ exit 2
+fi
+
# Certificate Authority
mkdir -pv "$CA"/ca "$CA"/certs "$CA"/signed
echo 1000 > "$CA"/ca/"$CA".serial