# Fleet Agent Goes from Online to Offline

**URL:** <https://discuss.elastic.co/t/fleet-agent-goes-from-online-to-offline/266745>\
**Category:** SIEM\
**Created:** [March 9, 2021, 7:42pm UTC](https://discuss.elastic.co/t/fleet-agent-goes-from-online-to-offline/266745 "2021-03-09T19:42:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkward](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkward/32/95305_2.png) [@pkward](https://discuss.elastic.co/u/pkward)\
**Post date:** [March 9, 2021, 7:42pm UTC](https://discuss.elastic.co/t/fleet-agent-goes-from-online-to-offline/266745/1 "2021-03-09T19:42:57Z")

</div>

I enrolled my agent, but after a few minutes it goes offline .I found errors in my endpoint agent logs The error is "Error [SSL certificate problem: self signed certificate in certificate chain]". I was able to bypass this for enrolling the agent with Kibana using the "--insecure" option, but I'm not sure if I can bypass with Elasticsearch. I'm using stack version 7.11.1.

---

<div class="post-metadata">

**Author:** ![jamesspi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesspi/32/24479_2.png) [@jamesspi](https://discuss.elastic.co/u/jamesspi)\
**Post date:** [March 24, 2021, 6:04pm UTC](https://discuss.elastic.co/t/fleet-agent-goes-from-online-to-offline/266745/2 "2021-03-24T18:04:11Z")

</div>

Hey @pkward ,

Are you asking about agent specifically, or agent with the endpoint security integration?

I would not use the `--insecure` flag - it is better to specify the certificate authority in use (in your case, since you're using a self signed cert - just specify the cert itself) - you can see the flag [here](https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html#_options).

If you're using the endpoint security integration, you will also need to specify the Elasticsearch CA used in the advanced settings in your policy.

---

<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:** [April 21, 2021, 6:04pm UTC](https://discuss.elastic.co/t/fleet-agent-goes-from-online-to-offline/266745/3 "2021-04-21T18:04:50Z")

</div>

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