10-May-2021 06:39
Hello, I am struggling with substracting one month from
session.ssl.cert.end
within this expression
expr { [mcget {session.ssl.cert.end}] <= [mcget {session.user.starttime}] }
It would be amazing if someone could point me into the right direction.
11-May-2021 07:36
Let me give it a try.
return [expr ({[clock scan [mcget {session.ssl.cert.end} ] ]} - [mcget {session.user.starttime} ]) <= "2678400" ]
Will return a 1 if the certificate is within one month of expiration, a 0 if it is not.
Cheers,
Kees