def get_host_list(cert):
    if 'subjectAltName' in cert:
        return [x[1] for x in cert['subjectAltName'] if x[0] == 'DNS']
    else:
        return [x[0][1] for x in cert['subject'] if x[0][0] == 'commonName']
dataset/ETHPy150Open Debian/debile/debile/utils/xmlrpc.py/get_host_list/original