SSL handshake failed in CloudAMQP

156 views
Skip to first unread message

Shivalika Chaudhary

unread,
Apr 26, 2021, 8:18:28 AM4/26/21
to rabbitmq-users
Hi
I am using the amqp cpp api to connect to the cloud amqp instance.
I am able to establish a default connection with it.

When I try to do a SSL handshake, I am not able to establish a connection, I get the error:
terminate called after throwing an instance of 'AMQPException'
  what():  AMQP cannot create socket
Aborted (core dumped)
The error value is -505 (ssl_handshake_failed)

I set up the certificates using tls-gen from the rabbitmq tls blog
I tried troubleshooting, When i connect to a openssl loclhost I am able to connect, so my certificates are alright.
But when i try to establish a connection to CloudAMQP through openssl, I get the output:

$ openssl s_client -connect fly.rmq.cloudamqp.com:5672   -cert /home/chaudharylin/Downloads/tls-gen/basic/result/client_certificate.pem -key /home/chaudharylin/Downloads/tls-gen/basic/result/client_key.pem -CAfile /home/chaudharylin/Downloads/tls-gen/basic/result/ca_certificate.pem

CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 313 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---

Can someone please help me with what is going wrong. Does the free instance not allow tls/ssl handshake?

Thanks in advance!

jo...@cloudamqp.com

unread,
Apr 27, 2021, 10:54:30 AM4/27/21
to rabbitmq-users
Hi,
On shared servers you can't upload your own certificate. You can use the certificate that we install with regular AMQPS.
You can contact our directly at: sup...@cloudamqp.com

/Johan
Reply all
Reply to author
Forward
0 new messages