While i try to connects the kibana to elasticsearch i get the following error in the kibana's logs and when i try to load the kibana i get the Kibana server is not ready yet. :
[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. certificate has expired
but the when i check the certificate it has not expired yet. Here is my elasticsearch.yml file
then checking it expiration date openssl x509 -in ./del-certificate.crt -noout -enddate
i get the notAfter=Dec 9 08:06:40 2025 GMT
which shows the certificate is not expired. when in kibana.yml file i change the
elasticsearch.ssl.verificationMode: full
to elasticsearch.ssl.verificationMode: none
the problem goes away which indicate the problem probably must be with the http certificate provided by elasticsearch to kibana. Is there any tips and suggestion how to troubleshoot? by the way i am trying to have mutalTLS enabled between kibana and cluster.
then as my xpack.security.http.ssl.keystore.path refere to certs/http.keystore.p12 i ran the command openssl pkcs12 -in http.keystore.p12 -nokeys -clcerts -nodes and i got
so as the both outputs are the same, i guess it is safe to assume the elasticsearch is representing the intended certificate? and also i guess the second line of the first picture is kind of a proof that the certificate is not expired?
It looks like your Elasticsearch is configured to send only the leaf certificate (which is normal), so Kibana is relying on the CA from /etc/kibana/truststore.p12
but that did not solve the problem too. I would try again solving the problem in the coming days and if i came across any solution i would post it here, meanwhile any more tips would be appreciated.
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.