Fleet Missing API key

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/
Error: fail to enroll: fail to execute request to fleet-server: 1 error occurred:
* missing enrollment api key

My configuration code is given below -

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 :slight_smile:

Thanks in advance,
Samiul

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