def cert_is_wildcard(cert):
 domains = cert_get_domains(cert)
 if ((len(domains) == 1) and (domains[0][0:1] == '*')):
  return True
 if (cert.subject.get_attributes_for_oid(x509.OID_COMMON_NAME)[0].value[0:1] == '*'):
  return True

def cert_is_wildcard ( cert ) : domains = cert_get_domains ( cert ) if ( ( len ( domains ) == 1 ) and ( domains [ 0 ] [ 0 : 1 ] == '*' ) ) : return True if ( cert . subject . get_attributes_for_oid ( x509 . OID_COMMON_NAME ) [ 0 ] . value [ 0 : 1 ] == '*' ) : return True
determines if certificate is a wildcard certificate .