# Self-signed cert unable to import data to stream using fleet

**URL:** <https://discuss.elastic.co/t/self-signed-cert-unable-to-import-data-to-stream-using-fleet/301798>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [April 6, 2022, 8:07pm UTC](https://discuss.elastic.co/t/self-signed-cert-unable-to-import-data-to-stream-using-fleet/301798 "2022-04-06T20:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfarmer](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@nfarmer](https://discuss.elastic.co/u/nfarmer)\
**Post date:** [April 6, 2022, 8:07pm UTC](https://discuss.elastic.co/t/self-signed-cert-unable-to-import-data-to-stream-using-fleet/301798/1 "2022-04-06T20:07:56Z")

</div>

Hello, I'm trying to deploy elastic agents using fleet with the certificate authorities enable in the advanced output settings, but when I go to install the agent, it still says unknown authority.  
So I enrolled the agent using the insecure flag, but I'm not receiving any data into the data streams.  
I tried using both the ca.crt and my Elasticsearch crt, but my elastic trace still fails with error.message":"javax.net.ssl.SSLHandshakeException: Received fatal alert: bad\_certificate

---

<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:** [May 4, 2022, 8:08pm UTC](https://discuss.elastic.co/t/self-signed-cert-unable-to-import-data-to-stream-using-fleet/301798/2 "2022-05-04T20:08:32Z")

</div>

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