I am running elasticsearch and kibana 7.1 on my local and trying to establish connectivity from Kibana to Elasticsearch post enabling https on Elasticsearch.
Kibana is reporting the below error
Blockquote
[09:01:44.195] [error][data][elasticsearch] Request error, retrying GET https://localhost:9200/_xpack => self signed certificate[09:01:44.195] [error][data][elasticsearch] Request error, retrying GET https://localhost:9200/_xpack => self signed certificate
Below are the configurations on Kibana and elastic Kibana
elasticsearch.hosts: ["https://localhost:9200"]
elasticsearch.ssl.certificateAuthorities: [ "C:\MyFolder\PRD\thisFolder\kibana-7.1.1-windows-x86_64\config\elastic.cer" ]
elasticsearch.ssl.verificationMode: certificate
What is the file format of C:\MyFolder\PRD\thisFolder\kibana-7.1.1-windows-x86_64\config\elastic.cer? Typically, .cer is used for DER encoded certificates, but Kibana requires these to be specified in the PEM format.
I had also tried with a pem file, which i generated using openssl on the PKCS#12 cert store generated for elastic search. The elsecert in the ElasticSearch config is the PKCS#12 cert store.
However, it produces the same error trace.
If i do set the verificationmode as none, kibana works as expected and i am able to setup connection to elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.