summaryrefslogtreecommitdiffstats
path: root/ca
blob: 6a170f4224b12b1a54e10e52956be7045c1659cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}"