summaryrefslogtreecommitdiffstats
path: root/ca
diff options
context:
space:
mode:
Diffstat (limited to 'ca')
-rwxr-xr-xca18
1 files changed, 18 insertions, 0 deletions
diff --git a/ca b/ca
new file mode 100755
index 0000000..6a170f4
--- /dev/null
+++ b/ca
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+export EASY_RSA="$HOME/docs/easy-rsa"
+cd "$EASY_RSA"
+
+if (($#<1)); then
+ echo "usage: ca <command> [arguments]"
+ echo
+ find . -maxdepth 1 -executable -type f -printf '%f\n'
+ exit 0
+fi
+
+source ./vars
+
+export KEY_DIR="$EASY_RSA/keys"
+export KEY_OU="."
+
+exec ./$1 "${@:2}"