You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to setup the com.rabbitmq.client.ConnectionFactory with
private val factory = new ConnectionFactory()
factory.useSslProtocol(MY_SSLContext_WithMyCertificate)
factory.setUri("amqps://...")
(Scala code, but goes the same in Java)
but the ConnectionFactory#setUri resets the context by calling useSslProtocol(); that defaults the trust mgr to TrustEverythingTrustManager.
That would produce the warn message: WARN |com.rabbitmq.client.TrustEverythingTrustManager.(TrustEverythingTrustManager.java:31)|main|This trust manager trusts every certificate, effectively disabling peer verification. This is convenient for local development but prone to man-in-the-middle attacks. Please see http://www.rabbitmq.com/ssl.html#validating-cerficates to learn more about peer certificate validation.
I could setup my SSLContext after the #setUri invocation but the setUri will still warn like above.
Regards,
Mihai Sarto
The text was updated successfully, but these errors were encountered:
ConnectionFactory#setUri always set up the default SSLContext
when a secured AMQP URI is passed in. Now, it only does so
if the sslContext property hasn't been set yet.
Fixes#297
Hi guys,
We are trying to setup the
com.rabbitmq.client.ConnectionFactory
with(Scala code, but goes the same in Java)
but the ConnectionFactory#setUri resets the context by calling
useSslProtocol();
that defaults the trust mgr to TrustEverythingTrustManager.That would produce the warn message:
WARN |com.rabbitmq.client.TrustEverythingTrustManager.(TrustEverythingTrustManager.java:31)|main|This trust manager trusts every certificate, effectively disabling peer verification. This is convenient for local development but prone to man-in-the-middle attacks. Please see http://www.rabbitmq.com/ssl.html#validating-cerficates to learn more about peer certificate validation.
I could setup my SSLContext after the #setUri invocation but the setUri will still warn like above.
Regards,
Mihai Sarto
The text was updated successfully, but these errors were encountered: