Open davemaul opened 2 years ago
I am also wondering how to set this up. The setUri
approach is not good as it uses useSslProtocol()
which is not suitable for production
Convenience method for configuring TLS using the default set of TLS protocols and a trusting TrustManager. This setup is only suitable for development and QA environments. The trust manager will trust every server certificate presented to it, this is convenient for local development but not recommended to use in production as it provides no protection against man-in-the-middle attacks. Prefer useSslProtocol(SSLContext).
Hello there,
i had a headache trying to create an SSL connection for RabbitMQ. Correct me if I'm wrong, but I think the smoothest way to achieve this is by using
rabbitmq.uri: amqps://rabbitmq:5671
instead of a combination ofrabbitmq.host: rabbitmq
andrabbitmq.port: 5671
because in the latter case SSL will be disabled. Furthermore, there's no property to explicitely activate SSL. Spring offers something like that:I only found out how to configure SSL by looking into
com.rabbitmq.client.ConnectionFactory
:In the docs there's nothing explicit about SSL connections. Imo this would be very useful especially for production usage.
Thanks in advance!