def ssl_cert(ip_info_list, base_domain): try: f = fetchCert.SSLCert(ip_info_list, base_domain) return f.run() except Exception as e: logger.exception(e) return {}
def ssl_cert(ip_info_list): try: targets = [] for ip_info in ip_info_list: for port_info in ip_info["port_info"]: if port_info["port_id"] == 80: continue targets.append("{}:{}".format(ip_info["ip"], port_info["port_id"])) f = fetchCert.SSLCert(targets) return f.run() except Exception as e: logger.exception(e) return {}