1
0
mirror of https://github.com/flant/ovpn-admin.git synced 2024-12-12 08:44:07 +02:00
ovpn-admin/get-easyrsa-end-gen-certs.sh

21 lines
404 B
Bash
Raw Normal View History

2020-05-15 01:13:33 +02:00
#!/bin/bash
if [ ! -d easyrsa ]; then
mkdir easyrsa
fi
cd easyrsa
if [ ! -f easyrsa ]; then
2020-10-15 18:12:31 +02:00
curl -sL https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.8/EasyRSA-3.0.8.tgz | tar -xzv --strip-components=1 -C .
2020-05-15 01:13:33 +02:00
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