Skip to content

SSL connection to Rabbit #35

Open
Swierkowski opened this issue Jun 1, 2021 · 1 comment
Open

SSL connection to Rabbit #35

Swierkowski opened this issue Jun 1, 2021 · 1 comment

Comments

@Swierkowski
Copy link

It is common that the connection is secured.

I do not see an option to establish secured connection.

In other libraries it is dane by just setting an extra flag (of course Rabbit use other port for secured connection and ip address should be raplaced by domain address).

@red-bashmak
Copy link
Contributor

You can create secure connection if you write com.rabbitmq.client.ConnectionFactory by self. Something like shown bellow.

val factory = new ConnectionFactory()
factory.setHost("localhost")
factory.setPort(5671)
factory.useSslProtocol()

val amqpConf: AmqpProtocolBuilder = amqp.connectionFactory(factory)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants