I am trying to install a Fleet server v 8.3.3 but not having much luck. I tried both the "quick" and "advanced" setups and same error related to certificate.
Some notes:
- Elasticsearch 8.3. 3 is running on host X and operational
- Kibana is running on host Y and is opeational.
- Trying to install the Fleet agent on host Z and port 8220 is open.
{"log.level":"info","@timestamp":"2022-07-19T21:24:19.251Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":792},"message":"Fleet Server - Starting","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-07-19T21:24:23.255Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":792},"message":"Fleet Server - Error - x509: certificate signed by unknown authority","ecs.version":"1.6.0"}
Error: fleet-server failed: context canceled
I used this to install the fleet agent:
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.3.2-linux-x86_64.tar.gz
tar xzvf elastic-agent-8.3.2-linux-x86_64.tar.gz
cd elastic-agent-8.3.2-linux-x86_64
sudo ./elastic-agent install --url=https://<fleet-server-ip>:8220 \
--fleet-server-es=https://<es-ip>:9200 \
--fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NTgyNjY1Mzg1ODg6SlhVcHl4RlpTQ2V0c1psWXRXUXhOZw \
--fleet-server-policy=fleet-server-policy \
--certificate-authorities=/tmp/ca.crt \
--fleet-server-es-ca=/tmp/certs/elasticsearch-ca.crt \
--fleet-server-cert=/tmp/certs/fleet-server.crt \
--insecure \
--fleet-server-cert-key=/tmp/certs/fleet-server.key
Thanks for your assistance