def validCertTime(cert):
    now = datetime.now()
    try:
        validAfter = datetime.strptime(cert.get_notBefore(), '%Y%m%d%H%M%SZ')
        validUntil = datetime.strptime(cert.get_notAfter(), '%Y%m%d%H%M%SZ')
        return validAfter < now < validUntil
    except ValueError:
        return False
Verify that TLS certificate *cert*'s time is not earlier than
dataset/ETHPy150Open nskinkel/oppy/oppy/crypto/util.py/validCertTime