mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
timeit
This commit is contained in:
parent
6ff101dcbb
commit
0396ce8efb
1 changed files with 2 additions and 0 deletions
|
|
@ -261,6 +261,8 @@ def human_readable_cert_info(config, cert, skip_filter_checks=False):
|
|||
reasons = []
|
||||
if cert.is_test_cert:
|
||||
reasons.append('TEST_CERT')
|
||||
import timeit
|
||||
print(timeit.timeit('cert.target_expiry', globals=locals()))
|
||||
if cert.target_expiry <= now:
|
||||
reasons.append('EXPIRED')
|
||||
if checker.ocsp_revoked(cert.cert, cert.chain):
|
||||
|
|
|
|||
Loading…
Reference in a new issue