xxxxxxxxxx
sudo nano /etc/elasticsearch/elasticsearch.yml
and replace this setting with false
# Enable security features
xpack.security.enabled: false
xxxxxxxxxx
The problem is quite clear: we try to establish a secure connection without specifying the Elastic username and a key. For this there are two simple solutions, namely firstly bypassing the certificate locally (not recommended, but working):
curl -u elastic:<YOUR-PASSWORD> https://localhost:9200 -k