AnsweredAssumed Answered

Expiring certificate Monitor

Question asked by Greenones on Aug 24, 2015
Latest reply on Feb 2, 2016 by kanandaguberan

Hi all,


I'm looking into monitoring expiring certificates on Servers.


I'm set up an alarm that gives me the expiration date and time, but need a little help on getting this value into LUA and comparing it to todays date, then, if less than 14 days - alert.


Here's my command to look up the expiration date:


echo | openssl s_client -connect 2>/dev/null | openssl x509 -noout -dates


The output of this command is generating an information alarm that states:


notAfter=Sep 19 13:38:11 2015 GMT


Thanks in advance!