[2022-06-25T16:15:56.848+00:00][ERROR][plugins.interactiveSetup.elasticsearch] Failed to authenticate with host "https://elastic:9200": Hostname/IP does not match certificate's altnames: Host: elastic. is not in the cert's altnames: DNS:elastic-759448c5cd-q5h5r, DNS:localhost, IP Address:127.0.0.1, IP Address:10.42.1.17
and for the elastic output I have to open it by this command only
curl -k -X GET https://elastic:9200 -u elastic
and I cant configure anything manually in the container I can't use Vim or Nano it doesn't exist in the container
please please who could help me ?
[2022-06-25T16:15:56.848+00:00][ERROR][plugins.interactiveSetup.elasticsearch] Failed to authenticate with host "https://elastic:9200": Hostname/IP does not match certificate's altnames: Host: elastic. is not in the cert's altnames: DNS:elastic-759448c5cd-q5h5r, DNS:localhost, IP Address:127.0.0.1, IP Address:10.42.1.17
The error says that your domain name does not match what is in the certificate's domain name(s) certificate. I'm assuming your certificate was generated using elasticsearch-certutil? However it was generated it needs to be valid for the domain name "elastic" which it currently is not.
The problem is that when your Elasticsearch node started, it thought it has the name elastic-759448c5cd-q5h5r and so it generated a certificate for that hostname.
It didn't not include the hostname elastic in that certificate.
Now when you try to enroll Kibana to Elasticsearch, Elasticsearch is advertising that it has the address elastic:9200. Kibana tries to enroll on that address but the certificate doesn't match the hostname.
Did you change something during your setup that would cause Elasticsearch to think it now has a different hostname (elastic vs elastic-759448c5cd-q5h5r)?
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.