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
This commit is contained in:
Nikolai Rodionov
2023-08-09 19:49:38 +02:00
parent 6a86b23ed8
commit 2ec840ff63
29 changed files with 681 additions and 297 deletions

View File

@ -31,23 +31,11 @@ fi
revoke_client_certificate(){
# Download EasyRSA because Ubuntu doesn't have it as a CLI command
wget https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.6/EasyRSA-unix-v3.0.6.tgz
tar xvf EasyRSA-unix-v3.0.6.tgz
export EASYRSA="EasyRSA-v3.0.6/"
export EASYRSA_SSL_CONF="EasyRSA-v3.0.6/openssl-easyrsa.cnf"
cp -r EasyRSA-v3.0.6/x509-types/ x509-types/
EasyRSA-v3.0.6/easyrsa revoke "$1"
/usr/share/easy-rsa/easyrsa revoke "$1"
echo "Generating the Certificate Revocation List :"
EasyRSA-v3.0.6/easyrsa gen-crl
/usr/share/easy-rsa/easyrsa gen-crl
cp -f "$EASYRSA_PKI/crl.pem" "$OPENVPN/crl.pem"
chmod 644 "$OPENVPN/crl.pem"
# Remove EasyRSA files when we're done
rm -r EasyRSA-v3.0.6/
rm EasyRSA-unix-v3.0.6.tgz
rm -r x509-types/
}
remove_files(){