# Unable to access elastic search without SSL

**URL:** <https://discuss.elastic.co/t/unable-to-access-elastic-search-without-ssl/303201>\
**Category:** Logstash\
**Created:** [April 25, 2022, 9:29pm UTC](https://discuss.elastic.co/t/unable-to-access-elastic-search-without-ssl/303201 "2022-04-25T21:29:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newelastic](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@newelastic](https://discuss.elastic.co/u/newelastic)\
**Post date:** [April 25, 2022, 9:29pm UTC](https://discuss.elastic.co/t/unable-to-access-elastic-search-without-ssl/303201/1 "2022-04-25T21:29:58Z")

</div>

Hello,

I'm trying to pull data from Elasticsearch using logstash pipeline and seeing some issues. I'm able to connect to ES using username and pwd through API (No certificate is provided in the request). However, when trying to connect through logstash pipeline, it is expecting to provide ssl setting and certificate file.

When trying to call Elasticsearch through API, able to connect to ES with basic auth.

 ![api_cluster](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df0ebcac773c5cdb3c4580b93f7653ee5c933e38.jpeg)

Below is my logstash pipeline for input plugin

```auto
input {
  elasticsearch {
	hosts => ["https://ipaddress:9200"]
	index => "index"
	user => "username"
	password => "pwd"	
}
}

```

Below is the error in logstash for cert issue

 ![logstash](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2dd390bcd901f08d87c1d6c008c580aad639db63.jpeg)

Does logstash require a certificate to authenticate to ES always? If yes, what cert to be used for authentication? SSL or client?

I've tried using ssl=\> false, but that's didn't solve the issue.

Is there a way to disable ssl using input plugin?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 26, 2022, 12:12am UTC](https://discuss.elastic.co/t/unable-to-access-elastic-search-without-ssl/303201/2 "2022-04-26T00:12:20Z")

</div>

Hi @newelastic

If Elasticsearch is configured with TLS/SSL(which it appears to be) then Yes If you have a self signed cert, yes you will need to provide a CA.

If you set up Elasticsearch per our docs you should have created a CA ... Use that one.

Disabling ssl will not work..

Also, please don't paste images. They can be nearly impossible to read that cannot be searched and they're very hard to help debug. In fact on my Mobile device the print is too small to read.

---

<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 24, 2022, 12:12am UTC](https://discuss.elastic.co/t/unable-to-access-elastic-search-without-ssl/303201/3 "2022-05-24T00:12:42Z")

</div>

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