# Cert error for intial setup of fileBeat

**URL:** https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614
**Category:** Beats
**Tags:** filebeat
**Created:** [February 18, 2022, 1:53pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614 "2022-02-18T13:53:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ledufakademy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ledufakademy/32/101973_2.png) [@ledufakademy](https://discuss.elastic.co/u/ledufakademy)
#### Post date: [February 18, 2022, 1:53pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614/1 "2022-02-18T13:53:32Z")

</div>

i follow exactly the documentaion , but we stuck on 🙂  
filebeat setup.

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

```

My conf;

```auto

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["127.0.0.1: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: "changeme"

  username: "elastic"
  password: "xxxxxxxxxxxx"
  ssl.ca_trusted_fingerprint: "/etc/filebeat/certs/http_ca.crt"
  ssl.verificationMode: none

```

"/etc/filebeat/certs/http\_ca.crt" i s a copy of "/etc/Elasticsearch/certs/http\_ca.crt"

---

<div class="post-metadata">

### Author: ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)
#### Post date: [February 20, 2022, 2:09am UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614/2 "2022-02-20T02:09:52Z")

</div>

The `ssl.ca_trusted_fingerprint` value is the actual fingerprint, not a path to the file. If u want to use a file use `ssl.certificate_authorities` which is a list of trusted CA files

---

<div class="post-metadata">

### Author: ![ledufakademy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ledufakademy/32/101973_2.png) [@ledufakademy](https://discuss.elastic.co/u/ledufakademy)
#### Post date: [February 20, 2022, 11:48am UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614/3 "2022-02-20T11:48:01Z")

</div>

hello legoguy1000,  
ok after modify , filebeat setup , is progressing progress. (so your advice was good ;-))  
now i've got :

```auto
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/s/HAproxy/api/status fails: fail to execute the HTTP GET request: Get "http://localhost:5601/s/HAproxy/api/status": EOF. Response: .

```

---

<div class="post-metadata">

### Author: ![ledufakademy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ledufakademy/32/101973_2.png) [@ledufakademy](https://discuss.elastic.co/u/ledufakademy)
#### Post date: [February 20, 2022, 1:17pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614/4 "2022-02-20T13:17:50Z")

</div>

Modify some port in kabana , then ok.

thank you.

---

<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 20, 2022, 3:18pm UTC](https://discuss.elastic.co/t/cert-error-for-intial-setup-of-filebeat/297614/5 "2022-03-20T15:18:15Z")

</div>

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