|
@@ -425,6 +425,11 @@ case "${1}" in
|
|
|
exit 0
|
|
|
fi
|
|
|
|
|
|
+ if [ ! -e /etc/openvpn/keys/user.crt ] || ! cat /etc/openvpn/keys/user.crt | openssl x509 -noout -checkend 0 >/dev/null
|
|
|
+ then
|
|
|
+ critical "Failed to start OpenVPN client : user certificate expired"
|
|
|
+ fi
|
|
|
+
|
|
|
info "[vpnclient] Starting..."
|
|
|
touch /tmp/.ynh-vpnclient-started
|
|
|
|