# Error: Received fatal alert: handshake\_failure Exception: Faraday::SSLError

**URL:** <https://discuss.elastic.co/t/error-received-fatal-alert-handshake-failure-exception-faraday-sslerror/230253>\
**Category:** Logstash\
**Created:** [April 28, 2020, 9:14pm UTC](https://discuss.elastic.co/t/error-received-fatal-alert-handshake-failure-exception-faraday-sslerror/230253 "2020-04-28T21:14:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edster](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@edster](https://discuss.elastic.co/u/edster)\
**Post date:** [April 28, 2020, 9:14pm UTC](https://discuss.elastic.co/t/error-received-fatal-alert-handshake-failure-exception-faraday-sslerror/230253/1 "2020-04-28T21:14:15Z")

</div>

Hello, I am running into an issue using the input to connect to our elastic nodes to retrieve an index, however, im running into the following error

> Error: Received fatal alert: handshake\_failure  
> Exception: Faraday::SSLError  
> Stack: org/jruby/ext/openssl/SSLSocket.java:276:in `connect_nonblock' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/protocol.rb:44:in `ssl\_socket\_connect'  
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:985:in `connect' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:924:in `do\_start'  
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:913:in `start' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:1465:in `request'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net\_http.rb:82:in `perform_request' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `block in call'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net\_http.rb:87:in `with_net_http_connection' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:32:in `call'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/rack\_builder.rb:139:in `build_response' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run\_request'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:23:in `block in perform_request' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/transport/base.rb:262:in `perform\_request'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/client.rb:131:in `perform\_request'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-api-5.0.5/lib/elasticsearch/api/actions/search.rb:183:in `search' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:280:in `search\_request'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:228:in `do_run_slice' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:209:in `do\_run'  
> /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:197:in `run' /opt/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:309:in `inputworker'  
> /opt/logstash-7.2.0/logstash-core/lib/logstash/java\_pipeline.rb:302:in `block in start\_input'

Our SSL is allowed and works for all other output config files which use the same fields plus two more, ilm\_enabled and ssl\_certificate\_verify. This is the input for our conf file.

> input {  
> elasticsearch {  
> hosts =\> [ES\_HOSTS]  
> user =\> "${SERVICE\_ACC}"  
> password =\> "${SERVICE\_PW}"  
> ssl =\> true  
> ca\_file =\> "FILE\_PATH"  
> index =\> "indexname"  
> query =\> '{"query": {"match\_all": {}}}'  
> }  
> }

---

<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 26, 2020, 9:14pm UTC](https://discuss.elastic.co/t/error-received-fatal-alert-handshake-failure-exception-faraday-sslerror/230253/2 "2020-05-26T21:14:26Z")

</div>

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