How to connect Kibana to Elasticsearch when http ssl is enabled

I think you are wrong. If you enable https to elasticsearch, you must also enable https between kibana server and browser, otherwise it shows "a secured connection is required for log in".
I have worked it out.