1
0
Fork 0
mirror of synced 2024-11-15 21:58:56 -05:00
ovpn-admin/get-easyrsa-end-gen-certs.sh
Vitaliy Snurnitsin 9f4c4e2c5c Initial
2020-05-15 02:13:33 +03:00

20 lines
410 B
Bash
Executable file

#!/bin/bash
if [ ! -d easyrsa ]; then
mkdir easyrsa
fi
cd easyrsa
if [ ! -f easyrsa ]; then
curl -sL https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.6/EasyRSA-unix-v3.0.6.tgz | tar -xzv --strip-components=1 -C .
fi
if [ -d pki ]; then
exit 0
fi
./easyrsa init-pki
echo "ca\n" | ./easyrsa build-ca nopass
./easyrsa build-server-full server nopass
./easyrsa build-client-full client nopass