# Cert error for intial setup of fileBeat

**URL:** <https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/329997>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 14, 2023, 10:19am UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/329997 "2023-04-14T10:19:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nibort](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@Nibort](https://discuss.elastic.co/u/Nibort)\
**Post date:** [April 14, 2023, 10:19am UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/329997/1 "2023-04-14T10:19:51Z")

</div>

Hello,  
I've followed the documention to connect client with filebeat to elasticsearch : [Filebeat quick start: installation and configuration | Filebeat Reference [8.7] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html)

My filebeat.yml

```auto
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["myip:9200"]

  # Protocol - either `http` (default) or `https`.
  protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  username: "elastic"
  password: "mypassword"
  ssl:
    enabled: true
    ca_trusted_fingerprint: ""

```

For the ca\_trusted\_fingerprint, I use the followed command find in the documentation on my elasticsearch machine with the following output

```auto
/etc/elasticsearch/certs# openssl x509 -fingerprint -sha256 -in /etc/elasticsearch/certs/http_ca.crt
sha256 Fingerprint=03:57:5A:6B:8E:C5:C1:C8:FA:8B:66:6D:B4:2D:36:E6:65:AB:C5:C2:4C:14:37:16:8E:11:7E:CD:CF:6A:17:10

```

I've pasted the fingerprint in filebeat.yml  
Then I run the filebeat setup and this append

```auto
sudo filebeat setup
Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at https://myip:9200: Get "https://myip:9200": decode 'ca_trusted_fingerprint': encoding/hex: invalid byte: U+003A ':']

```

Now i'm stuck..  
Can you provide help ?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 2, 2023, 1:22pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/329997/2 "2023-05-02T13:22:59Z")

</div>

Hi @Nibort Welcome to the community!

I see you solved your issue... Perhaps you could post you solution as it may help other users.

---

<div class="post-metadata">

**Author:** ![kriti\_dabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kriti_dabas/32/118506_2.png) [@kriti\_dabas](https://discuss.elastic.co/u/kriti_dabas)\
**Post date:** [May 4, 2023, 12:27pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/329997/3 "2023-05-04T12:27:18Z")

</div>

Hey can you provide the solution for this problem if your issue is resolved?

---

<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 1, 2023, 2:27pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/329997/4 "2023-06-01T14:27:28Z")

</div>

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