code: def get_server_certificate(self, host, port):
          
          logger.info("Fetching server certificate from %s:%s" % (host,port))
          try:
              return get_server_certificate((host, int(port)))
          except Exception as e:
              logger.error('Error getting server certificate from %s:%s: %s' %
                           (host, port, e))
              return False
docs: Gets the remote x.509 certificate
          :param host:
          :param port:
          :return: