mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +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
|
||||
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 "\\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"
|
||||
elif [ "${STATUS}" == "R" ]; then
|
||||
printf "Revoked \t %s \t %s\\n" "$NAME" "$EXPD"
|
||||
elif [ "${STATUS}" == "E" ]; then
|
||||
printf " Expired :: %s\n" "$NAME"
|
||||
else
|
||||
printf "Unknown \t %s \t %s\\n" "$NAME" "$EXPD"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue