Please read the context from previous post. That issue is resolved. Re-creating the queue and re-connecting to rabbitMQ
Now, I am trying to setup ssl enabled connection between rabbitmq server and rabbit client. I am using spring boot with spring cloud bus. Without SSL things work perfect.
- Used this to run the java rabbit client.
> Versions
Java 1.8
spring-cloud-starter-bus-amqp => 1.3.1.RELEASE
Spring boot parent => 1.5.9.RELEASE
sudo java -Djavax.net.debug=all -Dhttps.protocols=TLSv1 -jar target/rabbit-client-0.0.1-SNAPSHOT.jar
tried -Dhttps.cipherSuites=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 as well
- I used below command and it works with result as Verified [ok]. This tells me that rabbitmq server is configured correctly with certs.
openssl s_client -connect my.rabbitmq.com:5671 -cert nonprod.crt -key nonprod.key -CAfile nonprod-chain.crt -tls1 -prexit
- I can visit rabbitmq managemnet portal from chrome browser and it trusts the cert since I added it trusted in keychain.
- I have added the cert and CA cert to java key store and trusted it.
- Amqp client cannot establish the connection and fails with SSL enabled.
Link to view error and debug logs
This is what I believe can be issue but not sure.
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLSv1.1 is appearing in list of unsupported cipher and may be rabbitmq server is asking for that as encryption suite.