Simple web UI to manage OpenVPN users.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ovpn-admin/bootstrap.sh

19 lines
388 B

#!/usr/bin/env bash
3 years ago
mkdir -p {easyrsa,ccd}
3 years ago
cd easyrsa
if [ ! -f easyrsa ]; then
2 years ago
curl -sL https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.8/EasyRSA-3.0.8.tgz | tar -xzv --strip-components=1 -C .
3 years ago
fi
if [ -d pki ]; then
exit 0
fi
./easyrsa init-pki
echo "ca" | ./easyrsa build-ca nopass
3 years ago
./easyrsa build-server-full server nopass
./easyrsa build-client-full client nopass