Getting CN from a list of IPs