# RabbitMQ SSL Auth Error

**URL:** <https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792>\
**Category:** Sensu Classic (EOL)\
**Created:** [April 5, 2017, 6:46pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792 "2017-04-05T18:46:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [April 5, 2017, 6:46pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/1 "2017-04-05T18:46:07Z")

</div>

Hi guys  
I'm facing issues while trying to connect to rabbit with SSL  
certificates, whiout SSL it works fine, this is what I did

Followed this to generate the certs: [https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html)

Config:

"rabbitmq": {  
&nbsp;&nbsp;&nbsp;&nbsp;"host": "hostname",  
&nbsp;&nbsp;&nbsp;&nbsp;"port": 5671,  
&nbsp;&nbsp;&nbsp;&nbsp;"vhost": "/sensu",  
&nbsp;&nbsp;&nbsp;&nbsp;"user": "sensu",  
&nbsp;&nbsp;&nbsp;&nbsp;"password": "agoodpassword",  
&nbsp;&nbsp;&nbsp;&nbsp;"ssl": {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"cert\_chain\_file": "/etc/sensu/ssl/cert.pem",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"private\_key\_file": "/etc/sensu/ssl/key.pem"  
&nbsp;&nbsp;&nbsp;&nbsp;}

RMQ  
{ssl\_options, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{certfile, "/etc/rabbitmq/ssl/cert.pem"},  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{keyfile, "/etc/rabbitmq/ssl/key.pem"},  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{verify, verify\_peer},  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{fail\_if\_no\_peer\_cert, false}]}

level":"warn","message":"transport connection  
error","reason":"possible authentication failure. wrong  
credentials?","user":"sensu"}

Am I facing this bug? [https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)

Sensu version  
sensu-0.28.5-2.el7.x86\_64

Thanks in advance  
Regards

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [April 5, 2017, 6:50pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/2 "2017-04-05T18:50:57Z")

</div>

I'm also getting this on rabbitmq error log:

=ERROR REPORT==== 5-Apr-2017::13:48:19 ===  
error on AMQP connection \<0.1145.0\>:  
{ssl\_upgrade\_failure,  
&nbsp;&nbsp;&nbsp;&nbsp;{{function\_clause,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[{tls\_v1,enum\_to\_oid,[28],[{file,"tls\_v1.erl"},{line,404}]},

\*\* When State == hello  
\*\* Data == {state,server,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;undefined,undefined,undefined,undefined,undefined,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[\<\<0,107\>\>,

> **···**
>
> ---------- Forwarded message ----------  
> From: Net Warrior \<[netwarrior863@gmail.com](mailto:netwarrior863@gmail.com)\>  
> Date: 2017-04-05 15:46 GMT-03:00  
> Subject: RabbitMQ SSL Auth Error  
> To: sensu-users \<[sensu-users@googlegroups.com](mailto:sensu-users@googlegroups.com)\>
> 
> Hi guys  
> I'm facing issues while trying to connect to rabbit with SSL  
> certificates, whiout SSL it works fine, this is what I did
> 
> Followed this to generate the certs: [https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html)
> 
> Config:
> 
> "rabbitmq": {  
> &nbsp;&nbsp;&nbsp;&nbsp;"host": "hostname",  
> &nbsp;&nbsp;&nbsp;&nbsp;"port": 5671,  
> &nbsp;&nbsp;&nbsp;&nbsp;"vhost": "/sensu",  
> &nbsp;&nbsp;&nbsp;&nbsp;"user": "sensu",  
> &nbsp;&nbsp;&nbsp;&nbsp;"password": "agoodpassword",  
> &nbsp;&nbsp;&nbsp;&nbsp;"ssl": {  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"cert\_chain\_file": "/etc/sensu/ssl/cert.pem",  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"private\_key\_file": "/etc/sensu/ssl/key.pem"  
> &nbsp;&nbsp;&nbsp;&nbsp;}
> 
> RMQ  
> {ssl\_options, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{certfile, "/etc/rabbitmq/ssl/cert.pem"},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{keyfile, "/etc/rabbitmq/ssl/key.pem"},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{verify, verify\_peer},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{fail\_if\_no\_peer\_cert, false}]}
> 
> level":"warn","message":"transport connection  
> error","reason":"possible authentication failure. wrong  
> credentials?","user":"sensu"}
> 
> Am I facing this bug? [https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)
> 
> Sensu version  
> sensu-0.28.5-2.el7.x86\_64
> 
> Thanks in advance  
> Regards

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [April 5, 2017, 7:19pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/3 "2017-04-05T19:19:02Z")

</div>

The Certificates seems to be working:  
/etc/sensu/ssl

openssl s\_client -connect localhost:5671 -cert cert.pem -key key.pem  
-CAfile cacert.pem

subject=/CN=[servername.domain.com/O=server](http://servername.domain.com/O=server)  
issuer=/CN=Sensu

> **···**
>
> ---  
> Acceptable client certificate CA names  
> /CN=Sensu  
> ---  
> SSL handshake has read 2740 bytes and written 3891 bytes  
> ---  
> New, TLSv1/SSLv3, Cipher is AES256-SHA256  
> Server public key is 4096 bit  
> Secure Renegotiation IS supported  
> Compression: NONE  
> Expansion: NONE  
> SSL-Session:  
> &nbsp;&nbsp;&nbsp;&nbsp;Protocol : TLSv1.2  
> &nbsp;&nbsp;&nbsp;&nbsp;Cipher : AES256-SHA256  
> &nbsp;&nbsp;&nbsp;&nbsp;Session-ID: 609AD372595DFD091475CE49B945ADE65F451AF5249FB05633247AEA347CB125  
> &nbsp;&nbsp;&nbsp;&nbsp;Session-ID-ctx:  
> &nbsp;&nbsp;&nbsp;&nbsp;Master-Key:  
> 8B8D2D00649DA6A8E1A9D81CCF6C1FA32AA435AEE552C425CD6F1E5A3F3145C525E6791586762E9605C7AD65A2D4B46C  
> &nbsp;&nbsp;&nbsp;&nbsp;Key-Arg : None  
> &nbsp;&nbsp;&nbsp;&nbsp;Krb5 Principal: None  
> &nbsp;&nbsp;&nbsp;&nbsp;PSK identity: None  
> &nbsp;&nbsp;&nbsp;&nbsp;PSK identity hint: None  
> &nbsp;&nbsp;&nbsp;&nbsp;Start Time: 1491419784  
> &nbsp;&nbsp;&nbsp;&nbsp;Timeout : 300 (sec)  
> &nbsp;&nbsp;&nbsp;&nbsp;Verify return code: 0 (ok)
> 
> ---------- Forwarded message ----------  
> From: Net Warrior \<[netwarrior863@gmail.com](mailto:netwarrior863@gmail.com)\>  
> Date: 2017-04-05 15:46 GMT-03:00  
> Subject: RabbitMQ SSL Auth Error  
> To: sensu-users \<[sensu-users@googlegroups.com](mailto:sensu-users@googlegroups.com)\>
> 
> Hi guys  
> I'm facing issues while trying to connect to rabbit with SSL  
> certificates, whiout SSL it works fine, this is what I did
> 
> Followed this to generate the certs: [https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html)
> 
> Config:
> 
> "rabbitmq": {  
> &nbsp;&nbsp;&nbsp;&nbsp;"host": "hostname",  
> &nbsp;&nbsp;&nbsp;&nbsp;"port": 5671,  
> &nbsp;&nbsp;&nbsp;&nbsp;"vhost": "/sensu",  
> &nbsp;&nbsp;&nbsp;&nbsp;"user": "sensu",  
> &nbsp;&nbsp;&nbsp;&nbsp;"password": "agoodpassword",  
> &nbsp;&nbsp;&nbsp;&nbsp;"ssl": {  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"cert\_chain\_file": "/etc/sensu/ssl/cert.pem",  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"private\_key\_file": "/etc/sensu/ssl/key.pem"  
> &nbsp;&nbsp;&nbsp;&nbsp;}
> 
> RMQ  
> {ssl\_options, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{certfile, "/etc/rabbitmq/ssl/cert.pem"},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{keyfile, "/etc/rabbitmq/ssl/key.pem"},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{verify, verify\_peer},  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{fail\_if\_no\_peer\_cert, false}]}
> 
> level":"warn","message":"transport connection  
> error","reason":"possible authentication failure. wrong  
> credentials?","user":"sensu"}
> 
> Am I facing this bug? [https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)
> 
> Sensu version  
> sensu-0.28.5-2.el7.x86\_64
> 
> Thanks in advance  
> Regards

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [April 6, 2017, 2:45pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/4 "2017-04-06T14:45:01Z")

</div>

Can you paste Sensu’s rabbitmq configuration?

> **···**
>
> On Wed, Apr 5, 2017 at 12:19 PM, Net Warrior [netwarrior863@gmail.com](mailto:netwarrior863@gmail.com) wrote:
> 
> > Hi guys
> > 
> > I’m facing issues while trying to connect to rabbit with SSL
> > 
> > certificates, whiout SSL it works fine, this is what I did
> > 
> > Followed this to generate the certs: [https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html)
> > 
> > Config:
> > 
> > “rabbitmq”: {
> > 
> > ```
> > "host": "hostname",
> > 
> > "port": 5671,
> > 
> > "vhost": "/sensu",
> > 
> > "user": "sensu",
> > 
> > "password": "agoodpassword",
> > 
> > "ssl": {
> > 
> > "cert_chain_file": "/etc/sensu/ssl/cert.pem",
> > 
> > "private_key_file": "/etc/sensu/ssl/key.pem"
> > 
> > }
> > 
> > ```
> > 
> > RMQ
> > 
> > {ssl\_options, [{cacertfile, “/etc/rabbitmq/ssl/cacert.pem”},
> > 
> > ```
> > {certfile, "/etc/rabbitmq/ssl/cert.pem"},
> > 
> > {keyfile, "/etc/rabbitmq/ssl/key.pem"},
> > 
> > {verify, verify_peer},
> > 
> > {fail_if_no_peer_cert, false}]}
> > 
> > ```
> > 
> > level":“warn”,“message”:"transport connection
> > 
> > error",“reason”:"possible authentication failure. wrong
> > 
> > credentials?",“user”:“sensu”}
> > 
> > Am I facing this bug? [https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)
> > 
> > Sensu version
> > 
> > sensu-0.28.5-2.el7.x86\_64
> > 
> > Thanks in advance
> > 
> > Regards
> 
> > The Certificates seems to be working:
> > 
> > /etc/sensu/ssl
> > 
> > openssl s\_client -connect localhost:5671 -cert cert.pem -key key.pem
> > 
> > -CAfile cacert.pem
> > 
> > subject=/CN=[servername.domain.com/O=server](http://servername.domain.com/O=server)
> > 
> > issuer=/CN=Sensu
> > 
> > * * *
> > 
> > Acceptable client certificate CA names
> > 
> > /CN=Sensu
> > 
> > * * *
> > 
> > SSL handshake has read 2740 bytes and written 3891 bytes
> > 
> > * * *
> > 
> > New, TLSv1/SSLv3, Cipher is AES256-SHA256
> > 
> > Server public key is 4096 bit
> > 
> > Secure Renegotiation IS supported
> > 
> > Compression: NONE
> > 
> > Expansion: NONE
> > 
> > SSL-Session:
> > 
> > ```
> > Protocol : TLSv1.2
> > 
> > Cipher : AES256-SHA256
> > 
> > Session-ID: 609AD372595DFD091475CE49B945ADE65F451AF5249FB05633247AEA347CB125
> > 
> > Session-ID-ctx:
> > 
> > Master-Key:
> > 
> > ```
> > 
> > 8B8D2D00649DA6A8E1A9D81CCF6C1FA32AA435AEE552C425CD6F1E5A3F3145C525E6791586762E9605C7AD65A2D4B46C
> > 
> > ```
> > Key-Arg : None
> > 
> > Krb5 Principal: None
> > 
> > PSK identity: None
> > 
> > PSK identity hint: None
> > 
> > Start Time: 1491419784
> > 
> > Timeout : 300 (sec)
> > 
> > Verify return code: 0 (ok)
> > 
> > ```
> > 
> > ---------- Forwarded message ----------
> > 
> > From: Net Warrior [netwarrior863@gmail.com](mailto:netwarrior863@gmail.com)
> > 
> > Date: 2017-04-05 15:46 GMT-03:00
> > 
> > Subject: RabbitMQ SSL Auth Error
> > 
> > To: sensu-users [sensu-users@googlegroups.com](mailto:sensu-users@googlegroups.com)

---

<div class="post-metadata">

**Author:** ![cwjohnston](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/cwjohnston/32/193_2.png) [@cwjohnston](https://discourse.sensu.io/u/cwjohnston)\
**Post date:** [April 6, 2017, 3:56pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/5 "2017-04-06T15:56:28Z")

</div>

What version of Erlang is in use here? This rabbitmq-discuss thread suggests that this error is indicative of a bug in R16: [[rabbitmq-discuss] ssl\_handshake error](http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2014-April/035637.html)

> **···**
>
> On Wednesday, April 5, 2017 at 12:50:59 PM UTC-6, Kernel Panic wrote:
> 
> > I’m also getting this on rabbitmq error log:
> > 
> > =ERROR REPORT==== 5-Apr-2017::13:48:19 ===  
> > error on AMQP connection \<0.1145.0\>:  
> > {ssl\_upgrade\_failure,  
> > {{function\_clause,  
> > [{tls\_v1,enum\_to\_oid,[28],[{file,“tls\_v1.erl”},{line,404}]},
> > 
> > \*\* When State == hello  
> > \*\* Data == {state,server,  
> > {#Ref\<0.0.0.29667\>,\<0.1205.0\>},  
> > gen\_tcp,tls\_connection,tcp,tcp\_closed,tcp\_error,  
> > “localhost”,5671,#Port\<0.9074\>,  
> > {ssl\_options,undefined,  
> > [{3,3},{3,2},{3,1}],  
> > verify\_peer,  
> > {#Fun\<ssl.3.94144976\>,  
> > #Fun\<rabbit\_networking.1.106337268\>},  
> > false,false,undefined,1,  
> > \<\<“/etc/rabbitmq/ssl/cert.pem”\>\>,undefined,  
> > \<\<“/etc/rabbitmq/ssl/key.pem”\>\>,undefined,undefined,  
> > undefined,\<\<“/etc/rabbitmq/ssl/cacert.pem”\>\>,  
> > undefined,undefined,undefined,undefined,undefined,  
> > [\<\<0,107\>\>,
> > 
> > ---------- Forwarded message ----------  
> > From: Net Warrior [netwar...@gmail.com](mailto:netwar...@gmail.com)  
> > Date: 2017-04-05 15:46 GMT-03:00  
> > Subject: RabbitMQ SSL Auth Error  
> > To: sensu-users [sensu...@googlegroups.com](mailto:sensu...@googlegroups.com)
> > 
> > Hi guys  
> > I’m facing issues while trying to connect to rabbit with SSL  
> > certificates, whiout SSL it works fine, this is what I did
> > 
> > Followed this to generate the certs: [https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html)
> > 
> > Config:
> > 
> > “rabbitmq”: {  
> > “host”: “hostname”,  
> > “port”: 5671,  
> > “vhost”: “/sensu”,  
> > “user”: “sensu”,  
> > “password”: “agoodpassword”,  
> > “ssl”: {  
> > “cert\_chain\_file”: “/etc/sensu/ssl/cert.pem”,  
> > “private\_key\_file”: “/etc/sensu/ssl/key.pem”  
> > }
> > 
> > RMQ  
> > {ssl\_options, [{cacertfile, “/etc/rabbitmq/ssl/cacert.pem”},  
> > {certfile, “/etc/rabbitmq/ssl/cert.pem”},  
> > {keyfile, “/etc/rabbitmq/ssl/key.pem”},  
> > {verify, verify\_peer},  
> > {fail\_if\_no\_peer\_cert, false}]}
> > 
> > level":“warn”,“message”:“transport connection  
> > error”,“reason”:“possible authentication failure. wrong  
> > credentials?”,“user”:“sensu”}
> > 
> > Am I facing this bug? [https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)
> > 
> > Sensu version  
> > sensu-0.28.5-2.el7.x86\_64
> > 
> > Thanks in advance  
> > Regards

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [April 9, 2017, 1:43am UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/6 "2017-04-09T01:43:09Z")

</div>

Hi  
I'm using Erlan R16B-03.18.el7 , is that the one suffering the bug?

Thanks  
Regards

> **···**
>
> On 04/06/2017 12:56 PM, Cameron Johnston wrote:
> 
> > What version of Erlang is in use here? This rabbitmq-discuss thread suggests that this error is indicative of a bug in R16: [[rabbitmq-discuss] ssl\_handshake error](http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2014-April/035637.html)
> > 
> > On Wednesday, April 5, 2017 at 12:50:59 PM UTC-6, Kernel Panic wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm also getting this on rabbitmq error log:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;=ERROR REPORT==== 5-Apr-2017::13:48:19 ===  
> > &nbsp;&nbsp;&nbsp;&nbsp;error on AMQP connection \<0.1145.0\>:  
> > &nbsp;&nbsp;&nbsp;&nbsp;{ssl\_upgrade\_failure,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{function\_clause,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[{tls\_v1,enum\_to\_oid,[28],[{file,"tls\_v1.erl"},{line,404}]},
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;\*\* When State == hello  
> > &nbsp;&nbsp;&nbsp;&nbsp;\*\* Data == {state,server,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{#Ref\<0.0.0.29667\>,\<0.1205.0\>},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gen\_tcp,tls\_connection,tcp,tcp\_closed,tcp\_error,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"localhost",5671,#Port\<0.9074\>,  
> > &nbsp;&nbsp;&nbsp;&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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[\<\<0,107\>\>,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;---------- Forwarded message ----------  
> > &nbsp;&nbsp;&nbsp;&nbsp;From: Net Warrior \<netwar...@gmail.com \<javascript:\>\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;Date: 2017-04-05 15:46 GMT-03:00  
> > &nbsp;&nbsp;&nbsp;&nbsp;Subject: RabbitMQ SSL Auth Error  
> > &nbsp;&nbsp;&nbsp;&nbsp;To: sensu-users \<sensu...@googlegroups.com \<javascript:\>\>
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Hi guys  
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm facing issues while trying to connect to rabbit with SSL  
> > &nbsp;&nbsp;&nbsp;&nbsp;certificates, whiout SSL it works fine, this is what I did
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Followed this to generate the certs:  
> > &nbsp;&nbsp;&nbsp;&nbsp;[TLS Support — RabbitMQ](https://www.rabbitmq.com/ssl.html)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Config:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"rabbitmq": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"host": "hostname",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"port": 5671,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"vhost": "/sensu",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"user": "sensu",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"password": "agoodpassword",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"ssl": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"cert\_chain\_file": "/etc/sensu/ssl/cert.pem",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"private\_key\_file": "/etc/sensu/ssl/key.pem"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;RMQ  
> > &nbsp;&nbsp;&nbsp;&nbsp;{ssl\_options, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{certfile, "/etc/rabbitmq/ssl/cert.pem"},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{keyfile, "/etc/rabbitmq/ssl/key.pem"},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{verify, verify\_peer},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{fail\_if\_no\_peer\_cert, false}]}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;level":"warn","message":"transport connection  
> > &nbsp;&nbsp;&nbsp;&nbsp;error","reason":"possible authentication failure. wrong  
> > &nbsp;&nbsp;&nbsp;&nbsp;credentials?","user":"sensu"}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Am I facing this bug? [Incorrect logs and behavior whith wrong rabbit credentials · Issue #1550 · sensu/sensu · GitHub](https://github.com/sensu/sensu/issues/1550)  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[Issues · sensu/sensu · GitHub](https://github.com/sensu/sensu/issues/1550&gt);
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Sensu version  
> > &nbsp;&nbsp;&nbsp;&nbsp;sensu-0.28.5-2.el7.x86\_64
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Thanks in advance  
> > &nbsp;&nbsp;&nbsp;&nbsp;Regards

---

<div class="post-metadata">

**Author:** ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)\
**Post date:** [April 10, 2017, 9:43pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/7 "2017-04-10T21:43:19Z")

</div>

Sure

"rabbitmq": {

"host": "servername",  
"port": 5671,  
"vhost": "/sensu",  
"user": "sensu",  
"password": "ac9a27a0d1bfc0ee9b722e58bd84fb"  
"ssl": {  
"cert\_chain\_file": "/etc/sensu/ssl/cert.pem",  
"private\_key\_file": "/etc/sensu/ssl/key.pem"  
}

Thanks  
Regards

> **···**
>
> On 04/06/2017 11:45 AM, Kyle Anderson wrote:
> 
> > Can you paste Sensu's rabbitmq configuration?
> > 
> > On Wed, Apr 5, 2017 at 12:19 PM, Net Warrior \<netwarrior863@gmail.com \> \<mailto:netwarrior863@gmail.com\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;The Certificates seems to be working:  
> > &nbsp;&nbsp;&nbsp;&nbsp;/etc/sensu/ssl
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;openssl s\_client -connect localhost:5671 -cert cert.pem -key key.pem  
> > &nbsp;&nbsp;&nbsp;&nbsp;-CAfile cacert.pem
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;subject=/CN=servername.domain.com/O=server  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://servername.domain.com/O=server&gt](http://servername.domain.com/O=server&gt);  
> > &nbsp;&nbsp;&nbsp;&nbsp;issuer=/CN=Sensu  
> > &nbsp;&nbsp;&nbsp;&nbsp;---  
> > &nbsp;&nbsp;&nbsp;&nbsp;Acceptable client certificate CA names  
> > &nbsp;&nbsp;&nbsp;&nbsp;/CN=Sensu  
> > &nbsp;&nbsp;&nbsp;&nbsp;---  
> > &nbsp;&nbsp;&nbsp;&nbsp;SSL handshake has read 2740 bytes and written 3891 bytes  
> > &nbsp;&nbsp;&nbsp;&nbsp;---  
> > &nbsp;&nbsp;&nbsp;&nbsp;New, TLSv1/SSLv3, Cipher is AES256-SHA256  
> > &nbsp;&nbsp;&nbsp;&nbsp;Server public key is 4096 bit  
> > &nbsp;&nbsp;&nbsp;&nbsp;Secure Renegotiation IS supported  
> > &nbsp;&nbsp;&nbsp;&nbsp;Compression: NONE  
> > &nbsp;&nbsp;&nbsp;&nbsp;Expansion: NONE  
> > &nbsp;&nbsp;&nbsp;&nbsp;SSL-Session:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Protocol : TLSv1.2  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cipher : AES256-SHA256  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session-ID:  
> > &nbsp;&nbsp;&nbsp;&nbsp;609AD372595DFD091475CE49B945ADE65F451AF5249FB05633247AEA347CB125  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session-ID-ctx:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Master-Key:  
> > &nbsp;&nbsp;&nbsp;&nbsp;8B8D2D00649DA6A8E1A9D81CCF6C1FA32AA435AEE552C425CD6F1E5A3F3145C525E6791586762E9605C7AD65A2D4B46C  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Key-Arg : None  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Krb5 Principal: None  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PSK identity: None  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PSK identity hint: None  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start Time: 1491419784  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Timeout : 300 (sec)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verify return code: 0 (ok)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;---------- Forwarded message ----------  
> > &nbsp;&nbsp;&nbsp;&nbsp;From: Net Warrior \<netwarrior863@gmail.com  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<mailto:netwarrior863@gmail.com\>\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;Date: 2017-04-05 15:46 GMT-03:00  
> > &nbsp;&nbsp;&nbsp;&nbsp;Subject: RabbitMQ SSL Auth Error  
> > &nbsp;&nbsp;&nbsp;&nbsp;To: sensu-users \<sensu-users@googlegroups.com  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<mailto:sensu-users@googlegroups.com\>\>
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Hi guys  
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm facing issues while trying to connect to rabbit with SSL  
> > &nbsp;&nbsp;&nbsp;&nbsp;certificates, whiout SSL it works fine, this is what I did
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Followed this to generate the certs:  
> > &nbsp;&nbsp;&nbsp;&nbsp;[TLS Support — RabbitMQ](https://www.rabbitmq.com/ssl.html)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Config:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"rabbitmq": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"host": "hostname",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"port": 5671,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"vhost": "/sensu",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"user": "sensu",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"password": "agoodpassword",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"ssl": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"cert\_chain\_file": "/etc/sensu/ssl/cert.pem",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"private\_key\_file": "/etc/sensu/ssl/key.pem"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;RMQ  
> > &nbsp;&nbsp;&nbsp;&nbsp;{ssl\_options, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{certfile, "/etc/rabbitmq/ssl/cert.pem"},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{keyfile, "/etc/rabbitmq/ssl/key.pem"},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{verify, verify\_peer},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{fail\_if\_no\_peer\_cert, false}]}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;level":"warn","message":"transport connection  
> > &nbsp;&nbsp;&nbsp;&nbsp;error","reason":"possible authentication failure. wrong  
> > &nbsp;&nbsp;&nbsp;&nbsp;credentials?","user":"sensu"}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Am I facing this bug? [Incorrect logs and behavior whith wrong rabbit credentials · Issue #1550 · sensu/sensu · GitHub](https://github.com/sensu/sensu/issues/1550)  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[Issues · sensu/sensu · GitHub](https://github.com/sensu/sensu/issues/1550&gt);
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Sensu version  
> > &nbsp;&nbsp;&nbsp;&nbsp;sensu-0.28.5-2.el7.x86\_64
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Thanks in advance  
> > &nbsp;&nbsp;&nbsp;&nbsp;Regards

---

<div class="post-metadata">

**Author:** ![cwjohnston](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/cwjohnston/32/193_2.png) [@cwjohnston](https://discourse.sensu.io/u/cwjohnston)\
**Post date:** [April 13, 2017, 3:15pm UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/8 "2017-04-13T15:15:11Z")

</div>

Yes I believe R16B03 is affected by the bug in question, which is believed to be fixed in Erlang R17.  
Per [https://www.rabbitmq.com/which-erlang.html](https://www.rabbitmq.com/which-erlang.html), Erlang R17 or later is required for reliable use of SSL/TLS.

Regards,

Cameron

> **···**
>
> On Sat, Apr 8, 2017 at 7:43 PM Net Warrior [netwarrior863@gmail.com](mailto:netwarrior863@gmail.com) wrote:
> 
> > Hi
> > 
> > I’m using Erlan R16B-03.18.el7 , is that the one suffering the bug?
> > 
> > Thanks
> > 
> > Regards
> > 
> > On 04/06/2017 12:56 PM, Cameron Johnston wrote:
> > 
> > > What version of Erlang is in use here? This rabbitmq-discuss thread
> > 
> > > suggests that this error is indicative of a bug in R16:
> > 
> > > [http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2014-April/035637.html](http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2014-April/035637.html)
> > 
> > > 
> > 
> > > On Wednesday, April 5, 2017 at 12:50:59 PM UTC-6, Kernel Panic wrote:
> > 
> > > 
> > 
> > > ```
> > > I'm also getting this on rabbitmq error log:
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > =ERROR REPORT==== 5-Apr-2017::13:48:19 ===
> > > 
> > > ```
> > 
> > > ```
> > > error on AMQP connection <0.1145.0>:
> > > 
> > > ```
> > 
> > > ```
> > > {ssl_upgrade_failure,
> > > 
> > > ```
> > 
> > > ```
> > > {{function_clause,
> > > 
> > > ```
> > 
> > > ```
> > > [{tls_v1,enum_to_oid,[28],[{file,"tls_v1.erl"},{line,404}]},
> > > 
> > > ```
> > 
> > > 
> > 
> > > 
> > 
> > > ```
> > > ** When State == hello
> > > 
> > > ```
> > 
> > > ```
> > > ** Data == {state,server,
> > > 
> > > ```
> > 
> > > ```
> > > {#Ref<0.0.0.29667>,<0.1205.0>},
> > > 
> > > ```
> > 
> > > ```
> > > gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,
> > > 
> > > ```
> > 
> > > ```
> > > "localhost",5671,#Port<0.9074>,
> > > 
> > > ```
> > 
> > > ```
> > > {ssl_options,undefined,
> > > 
> > > ```
> > 
> > > ```
> > > [{3,3},{3,2},{3,1}],
> > > 
> > > ```
> > 
> > > ```
> > > verify_peer,
> > > 
> > > ```
> > 
> > > ```
> > > {#Fun<ssl.3.94144976>,
> > > 
> > > ```
> > 
> > > ```
> > > #Fun<rabbit_networking.1.106337268>},
> > > 
> > > ```
> > 
> > > ```
> > > false,false,undefined,1,
> > > 
> > > ```
> > 
> > > ```
> > > <<"/etc/rabbitmq/ssl/cert.pem">>,undefined,
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > <<"/etc/rabbitmq/ssl/key.pem">>,undefined,undefined,
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > undefined,<<"/etc/rabbitmq/ssl/cacert.pem">>,
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > undefined,undefined,undefined,undefined,undefined,
> > > 
> > > ```
> > 
> > > ```
> > > [<<0,107>>,
> > > 
> > > ```
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > ```
> > > ---------- Forwarded message ----------
> > > 
> > > ```
> > 
> > > ```
> > > From: Net Warrior <netwar...@gmail.com <javascript:>>
> > > 
> > > ```
> > 
> > > ```
> > > Date: 2017-04-05 15:46 GMT-03:00
> > > 
> > > ```
> > 
> > > ```
> > > Subject: RabbitMQ SSL Auth Error
> > > 
> > > ```
> > 
> > > ```
> > > To: sensu-users <sensu...@googlegroups.com <javascript:>>
> > > 
> > > ```
> > 
> > > 
> > 
> > > 
> > 
> > > ```
> > > Hi guys
> > > 
> > > ```
> > 
> > > ```
> > > I'm facing issues while trying to connect to rabbit with SSL
> > > 
> > > ```
> > 
> > > ```
> > > certificates, whiout SSL it works fine, this is what I did
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > Followed this to generate the certs:
> > > 
> > > ```
> > 
> > > ```
> > > [https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html) <[https://www.rabbitmq.com/ssl.html](https://www.rabbitmq.com/ssl.html)>
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > Config:
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > "rabbitmq": {
> > > 
> > > ```
> > 
> > > ```
> > > "host": "hostname",
> > > 
> > > ```
> > 
> > > ```
> > > "port": 5671,
> > > 
> > > ```
> > 
> > > ```
> > > "vhost": "/sensu",
> > > 
> > > ```
> > 
> > > ```
> > > "user": "sensu",
> > > 
> > > ```
> > 
> > > ```
> > > "password": "agoodpassword",
> > > 
> > > ```
> > 
> > > ```
> > > "ssl": {
> > > 
> > > ```
> > 
> > > ```
> > > "cert_chain_file": "/etc/sensu/ssl/cert.pem",
> > > 
> > > ```
> > 
> > > ```
> > > "private_key_file": "/etc/sensu/ssl/key.pem"
> > > 
> > > ```
> > 
> > > ```
> > > }
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > RMQ
> > > 
> > > ```
> > 
> > > ```
> > > {ssl_options, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},
> > > 
> > > ```
> > 
> > > ```
> > > {certfile, "/etc/rabbitmq/ssl/cert.pem"},
> > > 
> > > ```
> > 
> > > ```
> > > {keyfile, "/etc/rabbitmq/ssl/key.pem"},
> > > 
> > > ```
> > 
> > > ```
> > > {verify, verify_peer},
> > > 
> > > ```
> > 
> > > ```
> > > {fail_if_no_peer_cert, false}]}
> > > 
> > > ```
> > 
> > > 
> > 
> > > 
> > 
> > > ```
> > > level":"warn","message":"transport connection
> > > 
> > > ```
> > 
> > > ```
> > > error","reason":"possible authentication failure. wrong
> > > 
> > > ```
> > 
> > > ```
> > > credentials?","user":"sensu"}
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > Am I facing this bug? [https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)
> > > 
> > > ```
> > 
> > > ```
> > > <[https://github.com/sensu/sensu/issues/1550](https://github.com/sensu/sensu/issues/1550)>
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > Sensu version
> > > 
> > > ```
> > 
> > > ```
> > > sensu-0.28.5-2.el7.x86_64
> > > 
> > > ```
> > 
> > > 
> > 
> > > ```
> > > Thanks in advance
> > > 
> > > ```
> > 
> > > ```
> > > Regards
> > > 
> > > ```
> > 
> > >

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/rabbitmq-ssl-auth-error/792/9 "2018-11-22T02:07:52Z")

</div>

Closed on November 22, 2018, 2:07am UTC


