Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot AMQP unable to do a SSL connection

I am using a Springboot application to connect to RabbitMQ server. The connection was working fine but then the server changed the port to SSL enabled.

I added a property

spring.rabbitmq.ssl.enabled: true

It worked for sometime but now getting below exception

org.springframework.amqp.AmqpIOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Any idea, what I am missing here ?

like image 650
finepax007 Avatar asked Dec 17 '25 05:12

finepax007


1 Answers

I was also getting the same exception. In my case, by mistake I was using the below mentioned property for mentioning the rabbitmq host.

spring.rabbitmq.addresses=hosturl
spring.rabbitmq.port=5671

Then I updated the above property with the below one and it is working fine:

spring.rabbitmq.host=hostURL
spring.rabbitmq.port=5671

spring.rabbitmq.addresses- if you are using this then make sure to mention the rabbmitmq url as host:port and comma seperated values for multiple VMs(rabbitmq cluster)

like image 88
Ankit Adlakha Avatar answered Dec 19 '25 23:12

Ankit Adlakha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!