# How to get certifiates checked on elasticsearch-output-plugin?

**URL:** <https://discuss.elastic.co/t/how-to-get-certifiates-checked-on-elasticsearch-output-plugin/215100>\
**Category:** Logstash\
**Created:** [January 15, 2020, 9:08am UTC](https://discuss.elastic.co/t/how-to-get-certifiates-checked-on-elasticsearch-output-plugin/215100 "2020-01-15T09:08:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [January 15, 2020, 9:08am UTC](https://discuss.elastic.co/t/how-to-get-certifiates-checked-on-elasticsearch-output-plugin/215100/1 "2020-01-15T09:08:35Z")

</div>

Hi,

I installed logstash on centos via rpm and installed via system-install as service.

When starting logstash I get the following warning:

```
**WARNING** You have enabled encryption but DISABLED certificate verification.
**WARNING** To make sure your data is secure change :ssl_certificate_verification to true

```

My output config looks like this:

```
output
{
  elasticsearch
  {
    #hosts => ["${ES_HOST}:${ES_PORT}"]
    hosts => ["${ES_HOSTS}"]
    ssl => "${USE_ES_SSL}"
    cacert => "${ES_CA_CERT_PATH}"
    ssl_certificate_verification => "${USE_ES_OUTPUT_SSL_CERT_VERIFICATION}"

    # credentials are fetched from envrionment or logstash-keystore

    user => "${LOGSTASH_USER}"
    password => "${LOGSTASH_PASSWORD}"

    index => "%{[@metadata][indexName]}"
  }
}

```

The Environment variable USE\_ES\_OUTPUT\_SSL\_CERT\_VERIFICATION is set via /etc/sysconfig/\<service\_name\>:

```
cat /etc/sysconfig/logstash-plx-0 | grep USE_ES_OUTPUT_SSL_CERT_VERIFICATION
USE_ES_OUTPUT_SSL_CERT_VERIFICATION=true

```

Using logstash 7.4.1

Any idea? Since I condigure cacert I would like to have the certificate checked.

Thanks, Andreas

---

<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:** [February 12, 2020, 9:08am UTC](https://discuss.elastic.co/t/how-to-get-certifiates-checked-on-elasticsearch-output-plugin/215100/2 "2020-02-12T09:08:37Z")

</div>

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