def verify_certificate(certificate):
 now = timeutils.utcnow()
 if (now < certificate.not_valid_before):
  raise exception.SignatureVerificationError(reason=(_('Certificate is not valid before: %s UTC') % certificate.not_valid_before))
 elif (now > certificate.not_valid_after):
  raise exception.SignatureVerificationError(reason=(_('Certificate is not valid after: %s UTC') % certificate.not_valid_after))

def verify_certificate ( certificate ) : now = timeutils . utcnow ( ) if ( now < certificate . not_valid_before ) : raise exception . SignatureVerificationError ( reason = ( _ ( 'Certificate is not valid before: %s UTC' ) % certificate . not_valid_before ) ) elif ( now > certificate . not_valid_after ) : raise exception . SignatureVerificationError ( reason = ( _ ( 'Certificate is not valid after: %s UTC' ) % certificate . not_valid_after ) )
verify that the certificate has not expired .