diff --git a/check-certificates.rsc b/check-certificates.rsc index e10c82ae..0122122a 100644 --- a/check-certificates.rsc +++ b/check-certificates.rsc @@ -152,9 +152,10 @@ [ $FormatLine "Fingerprint" ($CertVal->"fingerprint") ] . "\n" . \ [ $IfThenElse ([ :len ($CertVal->"ca") ] > 0) [ $FormatLine "Issuer" ($CertVal->"ca") ] [ $FormatLine "Issuer chain" [ $FormatCertChain $Cert ] ] ] . "\n" . \ "Validity:\n" . \ + [ $FormatLine " days" ($CertVal->"days-valid") ] . "\n" . \ [ $FormatLine " from" ($CertVal->"invalid-before") ] . "\n" . \ [ $FormatLine " to" ($CertVal->"invalid-after") ] . "\n" . \ - [ $FormatLine "Expires in" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]); + [ $FormatLine " time left" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]); } :if ([ $ScriptLock $ScriptName ] = false) do={