mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-02-15 12:49:35 +00:00
check-certificates: show days valid in details
This commit is contained in:
parent
3ee1978098
commit
d0f50142f5
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@
|
||||||
[ $FormatLine "Fingerprint" ($CertVal->"fingerprint") ] . "\n" . \
|
[ $FormatLine "Fingerprint" ($CertVal->"fingerprint") ] . "\n" . \
|
||||||
[ $IfThenElse ([ :len ($CertVal->"ca") ] > 0) [ $FormatLine "Issuer" ($CertVal->"ca") ] [ $FormatLine "Issuer chain" [ $FormatCertChain $Cert ] ] ] . "\n" . \
|
[ $IfThenElse ([ :len ($CertVal->"ca") ] > 0) [ $FormatLine "Issuer" ($CertVal->"ca") ] [ $FormatLine "Issuer chain" [ $FormatCertChain $Cert ] ] ] . "\n" . \
|
||||||
"Validity:\n" . \
|
"Validity:\n" . \
|
||||||
|
[ $FormatLine " days" ($CertVal->"days-valid") ] . "\n" . \
|
||||||
[ $FormatLine " from" ($CertVal->"invalid-before") ] . "\n" . \
|
[ $FormatLine " from" ($CertVal->"invalid-before") ] . "\n" . \
|
||||||
[ $FormatLine " to" ($CertVal->"invalid-after") ] . "\n" . \
|
[ $FormatLine " to" ($CertVal->"invalid-after") ] . "\n" . \
|
||||||
[ $FormatLine "Expires in" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]);
|
[ $FormatLine "Expires in" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue