# Fleet Missing API key

**URL:** <https://discuss.elastic.co/t/fleet-missing-api-key/304818>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [May 16, 2022, 12:26pm UTC](https://discuss.elastic.co/t/fleet-missing-api-key/304818 "2022-05-16T12:26:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samiul008](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiul008/32/78659_2.png) [@Samiul008](https://discuss.elastic.co/u/Samiul008)\
**Post date:** [May 16, 2022, 12:26pm UTC](https://discuss.elastic.co/t/fleet-missing-api-key/304818/1 "2022-05-16T12:26:25Z")

</div>

Hello Community!

I have been trying to install FLEET server for Elasticsearch 7.14.2  
My Elasticsearch is configured with self-signed certificate and is functional with kibana=7.14.2 as well. However, I am unable to install Fleet server and getting the following message:

2022-05-16T17:57:13.076+0600 WARN [tls] tlscommon/tls\_config.go:98 SSL/TLS verifications disabled.  
2022-05-16T17:57:13.853+0600 INFO cmd/enroll\_cmd.go:396 Starting enrollment to URL: [http://192.168.36.196:8220/](http://192.168.36.196:8220/)  
Error: fail to enroll: fail to execute request to fleet-server: 1 error occurred:  
\* missing enrollment api key

My configuration code is given below -

```auto
sudo elastic-agent enroll --url=http://192.168.36.196:8220 \ -f --insecure \ --fleet-server-es=https://192.168.36.196:9200 \ --fleet-server-service-token= AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NTI3MDE1NzQ5NzA6VnYwbGdvOXVUU0duV0h4ZVkzaUF6Zw \ --fleet-server-policy=fcd370a1-d1f9-11ec-977a-758a16edf95c \ --certificate-authorities= /etc/elasticsearch/certs/ca/ca.crt \ --fleet-server-es-ca= /etc/elasticsearch/certs/elasticsearch.crt \ --fleet-server-cert= /etc/elasticsearch/certs/fleet-server/fleet-server.crt \ --fleet-server-cert-key=/etc/elasticsearch/certs/fleet-server/fleet-server.key

```

I have uninstalled elastic-agent, regenerated the certificates but no luck .  
Definitely, I am missing something!  
Please suggest possible troubleshooting or work around 🙂

Thanks in advance,  
Samiul

---

<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:** [June 13, 2022, 12:27pm UTC](https://discuss.elastic.co/t/fleet-missing-api-key/304818/2 "2022-06-13T12:27:22Z")

</div>

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