Re: [masstransit-discuss] Rabbit MQ Ssl Problem

424 views
Skip to first unread message

Dru Sellers

unread,
Oct 5, 2012, 11:25:10 AM10/5/12
to masstrans...@googlegroups.com
my guess is that while you have the port correct, we are not doing some SSL setting underneath the covers.

i would look at the rabbitmq tests to see if we have anything to support this. shouldn't be too hard if we don't to add.

-d

On Fri, Oct 5, 2012 at 5:51 AM, Ivan Diaz <fel...@gmail.com> wrote:
Hi,

I am having problems while trying to use MassTransit with a RabbitMQ server with SSL configured.

The SSL works while using RabbitMQ client to connect and is able to use the port 5671 without problems.

But when using Masstransit it always get the same error.

The code for Masstransit is:


Uri inputAddress = new Uri("rabbitmq://localhost:5671/test_queue");

_bus = ServiceBusFactory.New(c =>
{
c.ReceiveFrom(inputAddress);
                                        c.UseRabbitMqRouting();
c.UseRabbitMq(r =>
{
r.ConfigureHost(inputAddress, h =>
{
h.UseSsl(s =>
{
  s.SetServerName(System.Net.Dns.GetHostName());
                                            s.SetCertificatePath("C:\\client\\keycert.p12");
                                            s.SetCertificatePassphrase("password");
});
});
});
});

Rabbit MQ logs throws a ssl_upgrade_error

=INFO REPORT==== 5-Oct-2012::11:45:37 ===
accepting AMQP connection <0.15810.0> ([::1]:62343 -> [::1]:5671)

=ERROR REPORT==== 5-Oct-2012::11:45:37 ===
error on AMQP connection <0.15810.0>: {ssl_upgrade_error,"record overflow"}

I been trying everything for the last two days, anyone can help please?

Best regards and thanks a lot. 

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6MSxhQ9o9UMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ivan Diaz

unread,
Oct 5, 2012, 12:03:03 PM10/5/12
to masstrans...@googlegroups.com
Thanks a lot Dru,

I am able to connect to rabbitmq with SSL using the normal RabbitMQ Client and with MassTransit too if I don't use the UseRabbitMqRouting() option, with the routing option it always fails.

Best regards,
-d

To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages