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!