# HG changeset patch # User Kim Alvefur # Date 1456680252 -3600 # Node ID 48149ecbb649fdf18ba207e5ab5cdadd2fdb6bfd # Parent 92e5036bc55c1a09d3ae220a9a82514aade89793 prosodyctl: check certs: Warn about certificate expiry in the near future diff -r 92e5036bc55c -r 48149ecbb649 prosodyctl --- a/prosodyctl Sun Feb 28 18:23:24 2016 +0100 +++ b/prosodyctl Sun Feb 28 18:24:12 2016 +0100 @@ -1243,6 +1243,13 @@ if not cert:validat(os.time()) then print(" Certificate has expired.") cert_ok = false + elseif not cert:validat(os.time() + 86400) then + print(" Certificate expires within one day.") + cert_ok = false + elseif not cert:validat(os.time() + 86400*7) then + print(" Certificate expires within one week.") + elseif not cert:validat(os.time() + 86400*13) then + print(" Certificate expires within one month.") end if config.get(host, "component_module") == nil and not x509_verify_identity(host, "_xmpp-client", cert) then