# Fleet server Installation error

**URL:** https://discuss.elastic.co/t/fleet-server-installation-error/287443
**Category:** Beats
**Tags:** fleet
**Created:** [October 22, 2021, 2:16pm UTC](https://discuss.elastic.co/t/fleet-server-installation-error/287443 "2021-10-22T14:16:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ashwin\_Patil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin_patil1/32/90642_2.png) [@Ashwin\_Patil1](https://discuss.elastic.co/u/Ashwin_Patil1)
#### Post date: [October 22, 2021, 2:16pm UTC](https://discuss.elastic.co/t/fleet-server-installation-error/287443/1 "2021-10-22T14:16:59Z")

</div>

How do I trouble shoot this error?

```auto
localhost:~/elastic-agent-7.15.0-linux-x86_64 # sudo ./elastic-agent install --url=https://172.16.12.18:8220 \
> -f \
> --fleet-server-es=https://172.16.12.11:9200 \
> --fleet-server-service-token=AAEAAWVsYXN0aWMvZlZXQtc2VydmVyL3Rva2VuLTE2MzQ4OTE0ODE0MTg6NXZBMHFoS21TNGFIbXBYRERITEhnQQ \
> --fleet-server-policy=ae4ebec0-d43a-11eb-9a0c-25c8b2861191 \
> --certificate-authorities=/root/ca.crt \
> --fleet-server-es-ca=/root/cert.crt \
> --fleet-server-cert=/root/fleet-server/fleet-server.crt \
> --fleet-server-cert-key=/root/fleet-server/fleet-server.key
2021-10-22T09:32:18.524+0100 INFO cmd/enroll_cmd.go:674 Waiting for Elastic Agent to start
2021-10-22T09:32:21.536+0100 INFO cmd/enroll_cmd.go:724 Fleet Server - Starting
2021-10-22T09:32:22.539+0100 INFO cmd/enroll_cmd.go:705 Fleet Server - Running on policy with Fleet Server integration: ae4ebec0-d43a-11eb-9a0c-25c8b2861191; missing config fleet.agent.id (expected during bootstrap process)
2021-10-22T09:32:22.606+0100 INFO cmd/enroll_cmd.go:432 Starting enrollment to URL: https://172.16.12.18:8220/
Error: fail to enroll: fail to execute request to fleet-server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "Elastic Certificate Tool Autogenerated CA")
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html

```

---

<div class="post-metadata">

### Author: ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)
#### Post date: [October 23, 2021, 7:09pm UTC](https://discuss.elastic.co/t/fleet-server-installation-error/287443/2 "2021-10-23T19:09:49Z")

</div>

Troubleshoot your certificate authority, certificate and key.

> [@Ashwin\_Patil1](#):
>
> `x509: certificate signed by unknown authority`

---

<div class="post-metadata">

### Author: ![Ashwin\_Patil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin_patil1/32/90642_2.png) [@Ashwin\_Patil1](https://discuss.elastic.co/u/Ashwin_Patil1)
#### Post date: [October 24, 2021, 4:36pm UTC](https://discuss.elastic.co/t/fleet-server-installation-error/287443/3 "2021-10-24T16:36:33Z")

</div>

What certificate should be mentioned for fleet-server-es-ca?

---

<div class="post-metadata">

### Author: ![Duane\_Wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/duane_wylie/32/81969_2.png) [@Duane\_Wylie](https://discuss.elastic.co/u/Duane_Wylie)
#### Post date: [October 29, 2021, 7:27pm UTC](https://discuss.elastic.co/t/fleet-server-installation-error/287443/4 "2021-10-29T19:27:00Z")

</div>

I worked past this by performing the 2-step install/enroll process here: [Troubleshoot common problems | Fleet and Elastic Agent Guide [7.15] | Elastic](https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html#not-installing-no-logs-in-terminal)

Once the install was complete, in the fleet.yml file (under the agent install dir), in the fleet.server.output.Elasticsearch.ssl.certificate\_authorities section, I ensured that I had both CAs listed. The CA used to sign the Elasticsearch/kibana certs, and the CA used to sign the Fleet certs.

I'm not clear on which command line option is used to set those parameters. My command had my elastic-stack CA, but the file had the fleet CA when I opened it. I've struggled trying to unwrap the maze of certificates.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 26, 2021, 7:27pm UTC](https://discuss.elastic.co/t/fleet-server-installation-error/287443/5 "2021-11-26T19:27:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
