]>
jfr.im git - vpn-prov.git/blob - create-cert.sh
3 if [ -z "$1" -o -z "$2" ]; then
4 echo "Syntax: $0 <OU> <account name>" >&2
8 cd "$(dirname "$(readlink -f "$0")")"
9 source ./easy-rsa/vars >&2
10 KEY_OU="$1" KEY_CN="$2" ./easy-rsa/build-key >&2
20 $(cat easy-rsa/keys/rootca.crt)
21 $(cat easy-rsa/keys/ca.crt)
25 $(cat easy-rsa/keys/"$2".crt)
29 $(cat easy-rsa/keys/"$2".key)
34 if [ -f easy-rsa/keys/crl.pem ]; then
35 echo -ne "<crl
-verify>\n$(cat easy-rsa/keys/crl.pem)\n</crl
-verify>\n"