ca-install: Mention that validation is done.
[hcoop/scripts.git] / ca-sign
diff --git a/ca-sign b/ca-sign
index 78e4a87..68b6c88 100755 (executable)
--- a/ca-sign
+++ b/ca-sign
@@ -5,7 +5,11 @@
 #
 # Usage: ca-sign days request.csr out-cert-file.pem
 
 #
 # Usage: ca-sign days request.csr out-cert-file.pem
 
-test -n "$3" || exit 1
+if test -n "$3" || test -z "$2"; then
+    echo "Incorrect arguments."
+    echo "Usage: ca-sign days request.csr out-cert-file.pem"
+    exit 1
+fi
 
 DIR=/var/local/lib/ca
 CONF=$DIR/openssl.cnf
 
 DIR=/var/local/lib/ca
 CONF=$DIR/openssl.cnf