parameters: (cert)
docstring: Returns a list of valid host globs for an SSL certificate.
  
      Args:
        cert: A dictionary representing an SSL certificate.
      Returns:
        list: A list of valid host globs.
docstring_summary: Returns a list of valid host globs for an SSL certificate.
docstring_tokens: Returns a list of valid host globs for an SSL certificate .
function: def GetValidHostsForCert(cert):
      """Returns a list of valid host globs for an SSL certificate.
  
      Args:
        cert: A dictionary representing an SSL certificate.
      Returns:
        list: A list of valid host globs.
      """
      if 'subjectAltName' in cert:
          return [x[1] for x in cert['subjectAltName'] if x[0].lower() == 'dns']
      else:
          return [x[0][1] for x in cert['subject']
                  if x[0][0].lower() == 'commonname']
function_tokens: def GetValidHostsForCert ( cert ) : if 'subjectAltName' in cert : return [ x [ 1 ] for x in cert [ 'subjectAltName' ] if x [ 0 ] . lower ( ) == 'dns' ] else : return [ x [ 0 ] [ 1 ] for x in cert [ 'subject' ] if x [ 0 ] [ 0 ] . lower ( ) == 'commonname' ]