bootstrap: ensure ca config exists before continuing
[hcoop/domtool2.git] / bootstrap / domtool-create-ca
index 452c2e1..bab09ca 100755 (executable)
@@ -15,6 +15,11 @@ fi
 CAPATH=`../bin/domtool-config -path cert ca`
 BASE_OPENSSL_CONFIG=`../bin/domtool-config -domain`.core.ssl.conf
 
+if [ ! -f $BASE_OPENSSL_CONFIG ]; then
+    echo "You need to create $BASE_OPENSSL_CONFIG before continuing"
+    exit 1
+fi
+
 cat $BASE_OPENSSL_CONFIG common.ssl.conf > domtool-openssl.conf
 
 if [ -z "$CAPATH" ]; then