diff --git a/core/src/main/scala/com/avast/clients/rabbitmq/RabbitMQConnection.scala b/core/src/main/scala/com/avast/clients/rabbitmq/RabbitMQConnection.scala index b14bd074..6d8f3902 100644 --- a/core/src/main/scala/com/avast/clients/rabbitmq/RabbitMQConnection.scala +++ b/core/src/main/scala/com/avast/clients/rabbitmq/RabbitMQConnection.scala @@ -11,6 +11,7 @@ import com.avast.metrics.scalaapi.Monitor import com.rabbitmq.client._ import com.typesafe.config.{Config, ConfigFactory} import com.typesafe.scalalogging.StrictLogging +import javax.net.ssl.SSLContext import monix.execution.Scheduler import net.ceedubs.ficus.Ficus._ import net.ceedubs.ficus.readers.ArbitraryTypeReader._ @@ -232,7 +233,7 @@ object RabbitMQConnection extends StrictLogging { factory.useSslProtocol(sslContext) } else { - factory.useSslProtocol() + factory.useSslProtocol(SSLContext.getDefault) } }