mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
Showing expired certificates as such.
This commit is contained in:
parent
32bd1c628a
commit
5c26782925
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,8 @@ if [ ! -f "${INDEX}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
/etc/openvpn/easy-rsa/easyrsa update-db >> /var/log/easyrsa_update-db.log 2>1
|
||||||
|
|
||||||
printf ": NOTE : The first entry should always be your valid server!\n"
|
printf ": NOTE : The first entry should always be your valid server!\n"
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
printf "\\e[1m::: Certificate Status List :::\\e[0m\\n"
|
printf "\\e[1m::: Certificate Status List :::\\e[0m\\n"
|
||||||
|
@ -23,6 +25,8 @@ while read -r line || [ -n "$line" ]; do
|
||||||
printf "Valid \t %s \t %s\\n" "$NAME" "$EXPD"
|
printf "Valid \t %s \t %s\\n" "$NAME" "$EXPD"
|
||||||
elif [ "${STATUS}" == "R" ]; then
|
elif [ "${STATUS}" == "R" ]; then
|
||||||
printf "Revoked \t %s \t %s\\n" "$NAME" "$EXPD"
|
printf "Revoked \t %s \t %s\\n" "$NAME" "$EXPD"
|
||||||
|
elif [ "${STATUS}" == "E" ]; then
|
||||||
|
printf " Expired :: %s\n" "$NAME"
|
||||||
else
|
else
|
||||||
printf "Unknown \t %s \t %s\\n" "$NAME" "$EXPD"
|
printf "Unknown \t %s \t %s\\n" "$NAME" "$EXPD"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue