# How to disable SSL or pass certifacte in metricbeat

**URL:** https://discuss.elastic.co/t/how-to-disable-ssl-or-pass-certifacte-in-metricbeat/290124
**Category:** Beats
**Tags:** metricbeat
**Created:** [November 25, 2021, 5:52am UTC](https://discuss.elastic.co/t/how-to-disable-ssl-or-pass-certifacte-in-metricbeat/290124 "2021-11-25T05:52:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pratik\_jain163](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratik_jain163/32/93354_2.png) [@pratik\_jain163](https://discuss.elastic.co/u/pratik_jain163)
#### Post date: [November 25, 2021, 5:52am UTC](https://discuss.elastic.co/t/how-to-disable-ssl-or-pass-certifacte-in-metricbeat/290124/1 "2021-11-25T05:52:12Z")

</div>

Hi,  
i am trying to install metricbeat on k8s where in its values file i am passing ES details as below.  
and i am getting

> x509: certificate signed by unknown authority  
> and in ES doc i can see this but where i need to put this file.

```auto
output.elasticsearch.ssl.certificate: "/etc/client/cert.pem"
output.elasticsearch.ssl.key: "/etc/client/cert.key"

```

how i can pass CA certificate

```auto
daemonset:
  overrideConfig:
    metricbeat.config.modules:
      path: ${path.config}/modules.d/*.yml
      reload.enabled: false
    processors:
      - add_cloud_metadata:
    output.elasticsearch:
      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9201}']
deployment:
  overrideConfig:
    metricbeat.config.modules:
      path: ${path.config}/modules.d/*.yml
      reload.enabled: false
    processors:
      - add_cloud_metadata:
    output.elasticsearch:
      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9201}']
      ssl:
        verification_mode: "none"

```

---

<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: [December 23, 2021, 7:52am UTC](https://discuss.elastic.co/t/how-to-disable-ssl-or-pass-certifacte-in-metricbeat/290124/2 "2021-12-23T07:52:41Z")

</div>

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