mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Now using a nice argument instead assigning variables directly.
This commit is contained in:
parent
9c475f769e
commit
32d4a55c1a
2 changed files with 2 additions and 2 deletions
|
@ -886,7 +886,7 @@ EOF
|
|||
${SUDOE} openvpn --genkey --secret pki/ta.key
|
||||
|
||||
# Generate an empty Certificate Revocation List
|
||||
${SUDOE} EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
||||
${SUDOE} ./easyrsa gen-crl --days=3650
|
||||
${SUDOE} cp pki/crl.pem /etc/openvpn/crl.pem
|
||||
${SUDOE} chown nobody:nogroup /etc/openvpn/crl.pem
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ cd /etc/openvpn/easy-rsa || exit
|
|||
for (( ii = 0; ii < ${#CERTS_TO_REVOKE[@]}; ii++)); do
|
||||
printf "\n::: Revoking certificate '"%s"'.\n" "${CERTS_TO_REVOKE[ii]}"
|
||||
./easyrsa --batch revoke "${CERTS_TO_REVOKE[ii]}"
|
||||
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
||||
./easyrsa gen-crl --days=3650
|
||||
printf "\n::: Certificate revoked, and CRL file updated.\n"
|
||||
printf "::: Removing certs and client configuration for this profile.\n"
|
||||
rm -rf "pki/reqs/${CERTS_TO_REVOKE[ii]}.req"
|
||||
|
|
Loading…
Reference in a new issue