Software /
code /
prosody
Comparison
prosodyctl @ 7213:193e4c65d218
prosodyctl: One month is 31 days, no 13 (thanks av6)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Feb 2016 18:47:11 +0100 |
parent | 7212:167dbd29fbeb |
child | 7214:a927edfb54ab |
child | 7249:c49f69bb68f7 |
comparison
equal
deleted
inserted
replaced
7212:167dbd29fbeb | 7213:193e4c65d218 |
---|---|
1246 elseif not cert:validat(os.time() + 86400) then | 1246 elseif not cert:validat(os.time() + 86400) then |
1247 print(" Certificate expires within one day.") | 1247 print(" Certificate expires within one day.") |
1248 cert_ok = false | 1248 cert_ok = false |
1249 elseif not cert:validat(os.time() + 86400*7) then | 1249 elseif not cert:validat(os.time() + 86400*7) then |
1250 print(" Certificate expires within one week.") | 1250 print(" Certificate expires within one week.") |
1251 elseif not cert:validat(os.time() + 86400*13) then | 1251 elseif not cert:validat(os.time() + 86400*31) then |
1252 print(" Certificate expires within one month.") | 1252 print(" Certificate expires within one month.") |
1253 end | 1253 end |
1254 if config.get(host, "component_module") == nil | 1254 if config.get(host, "component_module") == nil |
1255 and not x509_verify_identity(host, "_xmpp-client", cert) then | 1255 and not x509_verify_identity(host, "_xmpp-client", cert) then |
1256 print(" Not vaild for client connections to "..host..".") | 1256 print(" Not vaild for client connections to "..host..".") |