diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-04-16 11:16:25 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-04-16 11:16:25 +0200 |
commit | 92d40d26682ff4fb2fc44d8c0c4f313a4b9b0abd (patch) | |
tree | d7d91e4610c051c7ec660c2dbc6f5c75fbcaeb95 /ca | |
parent | 98556437218cf47e920dbced925a8c87d7dc8b96 (diff) | |
download | bin-92d40d26682ff4fb2fc44d8c0c4f313a4b9b0abd.tar.gz bin-92d40d26682ff4fb2fc44d8c0c4f313a4b9b0abd.tar.xz |
Add scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ca')
-rwxr-xr-x | ca | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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}" |