[rabbitmq-discuss] rabbitmq mochiweb and ssl

Massimo Paladin Massimo.Paladin at cern.ch
Tue Jul 12 16:11:53 BST 2011


Other question, since 2.5.0 it is possible to instance the mgmt, api
and acl in different contexts.
I tried to set the mgmt with ssl on a specific port and the api on
another port without ssl.

This does not work because mgmt uses the api part with relative urls
and mgmt stays empty....

Is there any way to do what I am looking for?

Cheers,
---
Massimo Paladin

email: massimo.paladin at gmail.com
website: http://www.mpaladin.com
flickr's page: http://flickr.com/photos/massimop



On Tue, Jul 12, 2011 at 3:10 PM, Massimo Paladin
<Massimo.Paladin at cern.ch> wrote:
> Thank you Simon, it works!
>
> ...and I checked it more than once! ;-)
>
> Cheers,
> ---
> Massimo Paladin
>
> email: massimo.paladin at gmail.com
> website: http://www.mpaladin.com
> flickr's page: http://flickr.com/photos/massimop
>
>
>
> On Tue, Jul 12, 2011 at 3:05 PM, Simon MacMullen <simon at rabbitmq.com> wrote:
>> On 12/07/11 13:57, Massimo Paladin wrote:
>>>
>>> did someone try to enable ssl on the management interface?
>>>
>>> I followed instruction at: http://www.rabbitmq.com/mochiweb.html
>>>
>>> with following configuration:
>>> {rabbitmq_mochiweb, [{listeners, [
>>>                                   {'*',  [{port, 61100}]},
>>>                                   {mgmt, [{port, 61101}]},
>>
>>                                   here is the problem ---^
>>>
>>>                                           {ssl,      true},
>>>                                           {ssl_opts, [{cacertfile,
>>> "/path/to/cacert.pem"},
>>>                                                       {certfile,
>>> "/path/to/hostcert.pem"},
>>>                                                       {keyfile,
>>> "/path/to/hostkey.pem"}
>>>                                                      ]}
>>>                                  ]}
>>>                     ]}
>>
>> You've closed the proplist defining the "mgmt" listener after defining the
>> port but before getting to {ssl, true}.
>>
>> I think you need to change
>>
>>>                                    {mgmt, [{port, 61101}]},
>>
>> to
>>
>>>                                    {mgmt, [{port, 61101},
>>
>> You'll then need another "]}" after the ssl_opts.
>>
>> If you're in a position to do so, editing your config in Emacs' erlang-mode
>> and indenting can help make this sort ofn problem more obvious.
>>
>> I know that the term file format is confusing for a lot of people. Hopefully
>> at some point we can come up with something which is as flexible but easier
>> to understand.
>>
>> Cheers, Simon
>>
>> --
>> Simon MacMullen
>> RabbitMQ, VMware
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>


More information about the rabbitmq-discuss mailing list