code: def process_host(self, host_spec, name, line_idx=0):
          
          try:
              parts = host_spec.split(':', 1)
              host = parts[0].strip()
              port = parts[1] if len(parts) > 1 else 443
              pem_cert = self.get_server_certificate(host, port)
              if pem_cert:
                  sub = self.roca.process_pem_cert(pem_cert, name, line_idx)
                  return sub
  
          except Exception as e:
              logger.error('Error in file processing %s (%s) : %s' % (host_spec, name, e))
              self.roca.trace_logger.log(e)
docs: One host spec processing
          :param host_spec:
          :param name:
          :param line_idx:
          :return: