container-openvpn/bin/ovpn_genclientcert
Nikolai Rodionov 2ec840ff63
Take over the project
I've decided to maintain the project myself now, so I've forked it and
create a drone pipeline to push image to my registry
2023-08-18 17:18:48 +02:00

19 lines
239 B
Bash

#!/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