def has_expired(self):
time_string = _native(self.get_notAfter())<EOL>not_after = datetime.datetime.strptime(time_string, "<STR_LIT>")<EOL>return not_after < datetime.datetime.utcnow()<EOL>
Check whether the certificate has expired.

:return: ``True`` if the certificate has expired, ``False`` otherwise.
:rtype: bool