the error is
[es@xxxx elasticsearch-7]$ ./bin/elasticsearch-sql-cli https://elastic:Axxxx@xxxxx:19200
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
ERROR: Cannot communicate with the server https://elastic:xxxx@xxxxx:19200. This version of CLI only works with Elasticsearch version v7.0.0 [b7e28a7]
the es log is
[2019-05-24T10:31:40,046][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [node-1] http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=0.0.0.0/0.0.0.0:19200, remoteAddress=/xxxxx:35242}