Following the instructions here: Install Elasticsearch with Debian Package | Elasticsearch Guide [8.2] | Elastic
Installing from apt on Ubuntu server 20.04
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
sudo apt-get install apt-transport-https
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
sudo apt-get update
sudo apt-get install elasticsearch
I get a normal looking output for "Security autoconfiguration information" including a password for the elastic user. I have not changed any files from their default.
sudo systemctl start elasticsearch.service
Starts without errors, no errors in the log that I can find, so I believe Elasticsearch started cleanly but when I run:
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200
Result is an error:
Enter host password for user 'elastic':
curl: (77) error setting certificate verify locations:
CAfile: /etc/elasticsearch/certs/http_ca.crt
CApath: /etc/ssl/certs
If I run the same command with the -k flag
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200 -k
results in the below so I'm wondering what I missed, or where to go from here since I haven't done anything different from the stated instructions?
{
"name" : "elk",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Oby40z63Sn6G9RS_V9zuvg",
"version" : {
"number" : "8.2.3",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "9905bfb62a3f0b044948376b4f607f70a8a151b4",
"build_date" : "2022-06-08T22:21:36.455508792Z",
"build_snapshot" : false,
"lucene_version" : "9.1.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"