time_left

ciecplib.x509.time_left(cert)

Return the number of seconds left on this certificate.

If the certificate has expired, 0 is returned.

Parameters:

cert (cryptography.x509.Certificate) – The certificate to inspect.