# Rabbitmq input with cipher

**URL:** <https://discuss.elastic.co/t/rabbitmq-input-with-cipher/80733>\
**Category:** Logstash\
**Created:** [March 30, 2017, 7:01pm UTC](https://discuss.elastic.co/t/rabbitmq-input-with-cipher/80733 "2017-03-30T19:01:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![piyush](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@piyush](https://discuss.elastic.co/u/piyush)\
**Post date:** [March 30, 2017, 7:01pm UTC](https://discuss.elastic.co/t/rabbitmq-input-with-cipher/80733/1 "2017-03-30T19:01:26Z")

</div>

Hi Team,  
We setup Rabbitmq and configured logstash to read messages from queue. The configurations was working fine and now we updated Rabbitmq to accept only TLSv1.2,TLSv1.1 with specific ciphers. After this logstash can't read the messages and throwing below error.

Also installed "logstash-filter-cipher plugin" and configure it to decrypt ciphers.

We validated certs and CAs are trusted, can you suggest what else we can test to find out missing link?

Can you help reading inputs from Rabbitmq?

Received fatal alert: protocol\_version {:class=\>"Java::JavaxNetSsl::SSLException", :location=\>"sun.security.ssl.Alerts.getSSLException(sun/security/ssl/Alerts.java:208)", :level=\>:warn, :file=\>"logstash/inputs/rabbitmq.rb", :line=\>"180", :method=\>"register"}

Thanks & Regards,

---

<div class="post-metadata">

**Author:** ![piyush](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@piyush](https://discuss.elastic.co/u/piyush)\
**Post date:** [March 31, 2017, 5:50pm UTC](https://discuss.elastic.co/t/rabbitmq-input-with-cipher/80733/2 "2017-03-31T17:50:54Z")

</div>

Please respond.

Updated logstash.conf for all ciphers, JAVA for cacerts and RabbitMq certs as well but still getting sslException:

Received fatal alert: protocol\_version {:class=\>"Java::JavaxNetSsl::SSLException", :location=\>"sun.security.ssl.Alerts.getSSLException(sun/security/ssl/Alerts.java:208)", :level=\>:warn, :file=\>"logstash/inputs/rabbitmq.rb", :line=\>"180", :method=\>"register"}

PFB: Logstash configurations:

input{  
rabbitmq {  
host =\> "DNS"  
port =\> 5671  
queue =\> "que"  
user =\> "test"  
password =\> "test"  
durable =\> true  
ssl =\> true  
verify\_ssl =\> true  
type =\> logs  
}  
}  
filter {  
cipher {  
algorithm =\> "xyz"  
mode =\> "decrypt"  
}  
cipher {  
algorithm =\> "pqr"  
mode =\> "decrypt"  
}  
}  
output {  
stdout { codec =\> rubydebug }  
}

RabbitMq conf:

```
         {versions, ['tlsv1.2', 'tlsv1.1']},
         {ciphers, ["xyz", "pqr",]},
         {fail_if_no_peer_cert,false}]}

```

Thanks & Regards,

---

<div class="post-metadata">

**Author:** ![piyush](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@piyush](https://discuss.elastic.co/u/piyush)\
**Post date:** [April 6, 2017, 6:44pm UTC](https://discuss.elastic.co/t/rabbitmq-input-with-cipher/80733/3 "2017-04-06T18:44:58Z")

</div>

May i request for a response?

Please note that its a blocker and any help would be appreciated. Moreover i verified certificates, this error is due to TLS1.2 implementation.

In the meantime i tried with multiple versions and plugins, but no luck.

logstash-core-plugin-api-1.8.0-java.gem  
logstash-codec-json-2.1.4.gem  
logstash-input-rabbitmq-4.1.0.gem  
logstash-filter-cipher-2.0.2.gem

---

<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 4, 2017, 6:45pm UTC](https://discuss.elastic.co/t/rabbitmq-input-with-cipher/80733/4 "2017-05-04T18:45:15Z")

</div>

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