Cannot established ssl connection with rabbitmq
<p>I am trying to establish ssl connection with rabbitmq broker.
I follow <a href="https://www.rabbitmq.com/troubleshooting-ssl.html" rel="nofollow" title="this page">this page</a> to help me and I find my bug, but I don't know who to resolve it. I am stuck at the test connection with the broker : </p>

<pre><code>openssl s_client -connect localhost:5671 -cert client/cert.pem -key client/key.pem -CAfile testca/cacert.pem

CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 289 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol  : TLSv1.2
Cipher    : 0000
Session-ID: 
Session-ID-ctx: 
Master-Key: 
Key-Arg   : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1470206187
Timeout   : 300 (sec)
Verify return code: 0 (ok)
---
</code></pre>

<p>And I have no log but I need <code>accepting AMQP connection</code>.</p>

<pre><code>#Rabbimq.conf
[
  {rabbit, [
     {ssl_listeners, [5671]},
     {ssl_options, [{cacertfile,".../testca/cacert.pem"},
                    {certfile,".../server/cert.pem"},
                    {keyfile,".../server/key.pem"},
                    {ciphers,  [{rsa,aes_256_cbc,sha256}]},
                    {verify,verify_peer},
                    {fail_if_no_peer_cert,false}]}
   ]}
].
</code></pre>

<p>The certificates that I use are validated, verified and created with the doc.</p>

<p>I think is this issue that does not allow me to perform a ssl connection.</p>

<p>Thanks</p>

<p>Edit: I created the certificates at /var/lib/rabbitmq with the user rabbitmq and like this permissions goes right and the server can access to the certs.</p>