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 ?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With