#!/bin/sh VERSION="22.12" show_version() { cat <, Jérémy Lecour , Jérémy Dubois and others. cert-expirations.sh comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the MIT Licence for details. END } show_usage() { cat </dev/null | grep 'status' | cut -d' ' -f2) if [ "$carp" = "backup" ]; then exit 0 fi fi cacert_path="/etc/openvpn/ssl/ca/cacert.pem" index_path="/etc/openvpn/ssl/ca/index.txt" somedays="3456000" # 40 days currently expired_certs="" expiring_soon_certs="" still_valid_certs="" case "$1" in version|--version) show_version exit 0 ;; help|--help) show_usage exit 0 ;; "") echo "Warning : all times are in UTC !" echo "" check_ca_expiration echo "" check_certs_expiration ;; *) show_usage >&2 exit 1 ;; esac } main "$@"