# Where to place ssl\_certificate\_verification?

**URL:** <https://discuss.elastic.co/t/where-to-place-ssl-certificate-verification/198700>\
**Category:** Logstash\
**Created:** [September 9, 2019, 2:03pm UTC](https://discuss.elastic.co/t/where-to-place-ssl-certificate-verification/198700 "2019-09-09T14:03:24Z")\
**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:** [September 9, 2019, 2:03pm UTC](https://discuss.elastic.co/t/where-to-place-ssl-certificate-verification/198700/1 "2019-09-09T14:03:24Z")

</div>

Hi,

I am using security module to encrypt transport between es-nodes and to rest api.

In logstash I get the following warning:

```
[2019-09-09T13:56:45,737][WARN][logstash.outputs.elasticsearch] **WARNING** Detected UNSAFE options in elasticsearch output configuration!
**WARNING** You have enabled encryption but DISABLED certificate verification.
**WARNING** To make sure your data is secure change :ssl_certificate_verification to true

```

My pipeline output looks like this:

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

		# credentials are fetched from envrionment or logstash-keystore

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

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

```

xpack monitoring is also enabled.

In for ES transport layer I am checking only certificate, but disabled hostname certification.

So any idea, how I can get rid of this warning? I want to validate hostname on rest api entrypoint.

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:** [October 7, 2019, 2:03pm UTC](https://discuss.elastic.co/t/where-to-place-ssl-certificate-verification/198700/2 "2019-10-07T14:03:28Z")

</div>

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