container-openvpn/bin/ovpn_genclientcert

19 lines
239 B
Plaintext
Raw Normal View History

2019-06-23 04:38:15 +00:00
#!/bin/bash
#
# Generate a client certificate with EasyRSA
#
if [ "$DEBUG" == "1" ]; then
set -x
fi
CLIENTNAME=$1
PASSWORD=$2
set -e
source "$OPENVPN/ovpn_env.sh"
/usr/share/easy-rsa/easyrsa build-client-full $CLIENTNAME $PASSWORD