quarkus-rabbitmq-client
quarkus-rabbitmq-client copied to clipboard
Usage of `com.rabbitmq.client.ConnectionFactory`
I currently have an app that:
- Retrieves credentials from a vault
- Uses a certificate (in base64) to secure the connection
Both configurations depends on using ConnectionFactory to create the connection programmatically.
Point 1
Given that quarkus-rabbitmq-client has most of its configuration as a property, and does not currently support Credentials Provider, I believe I can achieve the same result from point 1 with a Custom ConfigSource. 👍🏻
Point 2
However, I don't know how to workaround point 2. Reading the docs, I see a "TLS Configuration", but I'm not sure how to use it with a base64 cert.
I currently have code that generate a SSLContext from the base64 cert, and can use it with connectionFactory.useSslProtocol(sslContext). However, I do not see an option where I can use com.rabbitmq.client.ConnectionFactory to customize the connection of quarkus-rabbitmq-client programmatically. Is there any?