# file.name":"module/wrapper.go","file.line":259},"message":"Error fetching data for metricset kibana.status: error making http request: Get \\"https://kibana/api/status\\": x509: certificate signed by unknown authority

**URL:** <https://discuss.elastic.co/t/file-name-module-wrapper-go-file-line-259-message-error-fetching-data-for-metricset-kibana-status-error-making-http-request-get-https-kibana-api-status-x509-certificate-signed-by-unknown-authority/302304>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [April 13, 2022, 8:47am UTC](https://discuss.elastic.co/t/file-name-module-wrapper-go-file-line-259-message-error-fetching-data-for-metricset-kibana-status-error-making-http-request-get-https-kibana-api-status-x509-certificate-signed-by-unknown-authority/302304 "2022-04-13T08:47:16Z")\
**Posts on this page:** 2\
**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:** [April 13, 2022, 8:47am UTC](https://discuss.elastic.co/t/file-name-module-wrapper-go-file-line-259-message-error-fetching-data-for-metricset-kibana-status-error-making-http-request-get-https-kibana-api-status-x509-certificate-signed-by-unknown-authority/302304/1 "2022-04-13T08:47:16Z")

</div>

Im using fleet server and elastic agent to monitoring kibana, i have cert error  
fleet server is running in a container  
bootstrap with ansible

```auto
 env:
      FLEET_SERVER_ENABLE: "1"
      FLEET_URL: "{{ docker_fleet_server_url }}"  
      FLEET_CA: "/usr/share/elastic-agent/ca.crt"
      ELASTICSEARCH_HOST: "{{ docker_fleet_server_es_host }}"
      FLEET_SERVER_SERVICE_TOKEN: "{{ docker_fleet_server_service_token }}"
      FLEET_SERVER_ELASTICSEARCH_CA: "/usr/share/elastic-agent/ca.crt"
      FLEET_SERVER_CERT: "/usr/share/elastic-agent/{{ docker_fleet_server_name }}.crt"
      FLEET_SERVER_CERT_KEY: "/usr/share/elastic-agent/{{ docker_fleet_server_name }}.key"
      FLEET_SERVER_POLICY_ID: "{{ docker_fleet_policy_id }}"

```

elastic agent is running normal:

```auto
elastic-agent install --force --url=https://ip:8220 --enrollment-token=token --certificate-authorities=/opt/elastic-agent/certs/ca.crt

```

what im missing ?

---

<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 11, 2022, 10:47am UTC](https://discuss.elastic.co/t/file-name-module-wrapper-go-file-line-259-message-error-fetching-data-for-metricset-kibana-status-error-making-http-request-get-https-kibana-api-status-x509-certificate-signed-by-unknown-authority/302304/2 "2022-05-11T10:47:56Z")

</div>

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