# How to run fleet server in insecure mode?

**URL:** <https://discuss.elastic.co/t/how-to-run-fleet-server-in-insecure-mode/296610>\
**Category:** Elasticsearch\
**Tags:** docker, fleet\
**Created:** [February 8, 2022, 2:29pm UTC](https://discuss.elastic.co/t/how-to-run-fleet-server-in-insecure-mode/296610 "2022-02-08T14:29:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielfsousa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabrielfsousa/32/116946_2.png) [@gabrielfsousa](https://discuss.elastic.co/u/gabrielfsousa)\
**Post date:** [February 8, 2022, 2:29pm UTC](https://discuss.elastic.co/t/how-to-run-fleet-server-in-insecure-mode/296610/1 "2022-02-08T14:29:26Z")

</div>

Im running fleet server in docker with this env

```auto
--env FLEET_ENROLL=1\
--env FLEET_SERVER_ENABLE=1\
--env FLEET_SERVER_ELASTICSEARCH_HOST=$(ELASTICSEARCHHOST)\
--env FLEET_SERVER_SERVICE_TOKEN=$(SERVICETOKEN)\
--env FLEET_SERVER_POLICY_ID=$(POLICYID)\
--env FLEET_SERVER_INSECURE_HTTP=true\
--env FLEET_INSECURE=true\

```

but i have allways the error:

```auto
fleet-server--7.16.2[]: State changed to FAILED: Error - x509: certificate signed by unknown authority - type: 'ERROR' - sub_type: 'FAILED'

```

---

<div class="post-metadata">

**Author:** ![gabrielfsousa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabrielfsousa/32/116946_2.png) [@gabrielfsousa](https://discuss.elastic.co/u/gabrielfsousa)\
**Post date:** [February 8, 2022, 4:48pm UTC](https://discuss.elastic.co/t/how-to-run-fleet-server-in-insecure-mode/296610/2 "2022-02-08T16:48:12Z")

</div>

was missing this one !!

```auto
FLEET_SERVER_ELASTICSEARCH_INSECURE=true

```

---

<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:** [March 8, 2022, 4:48pm UTC](https://discuss.elastic.co/t/how-to-run-fleet-server-in-insecure-mode/296610/3 "2022-03-08T16:48:28Z")

</div>

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