On 28/09/2022 16:40, Joe Patterson wrote:
The general form of what you want to do is:openssl x509 -in file.crt -noout -text | grep 'Not After'
An easier way; this checks if the certificate expires within the next 30 days: $ openssl x509 -noout -checkend $((30*24*3600)) -in file.crt || echo "NEED RENEWAL" -- kind regards, David Sommerseth OpenVPN Inc
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users