<meta charset="utf-8"><span class="Apple-style-span" style="font-family: 'Droid Sans', arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(32, 32, 32); ">Hello,<div><br></div><div>I am looking at rabbitmq 2.5.0 and the stomp plugin.</div>
<div><br></div><div>I am able to connect through ssl with plain authentication but not with ssl and certificate authentication.</div><div><br></div><div>Is certificate authentication supported in this version of stomp plugin?</div>
<div><br></div><div>What I get in the log is (using stomp 1.0 for this example):</div><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<div><div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>accepted TCP connection on 0.0.0.0:xxxxx from x.x.x.x:48014</div><div><br></div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>upgraded TCP connection <0.231.0> to SSL</div>
<div><br></div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>starting STOMP connection <0.1585.0> from x.x.x.x:48014</div><div><br></div><div>=ERROR REPORT==== 15-Jun-2011::17:17:35 ===</div><div>STOMP error frame sent:</div>
<div>Message: "Bad CONNECT"</div><div>Detail: "Missing login or passcode header(s)\n"</div><div>Server private detail: none</div><div><br></div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>
Socket {ssl_socket,#Port<0.5884>,{sslsocket,new_ssl,<0.1581.0>}} closed by client</div><div><br></div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>ending STOMP connection <0.1585.0> from x.x.x.x:48014</div>
</div></div><div><br></div></blockquote><div>It still looks for login and passcode...</div><div><br></div><div>The config part related to ssl and authentication is:</div><div><div> {rabbit, [ {auth_mechanisms, ['PLAIN', 'AMQPLAIN', 'EXTERNAL']},</div>
<div> {tcp_listeners, [xxxxx]},</div><div> {ssl_listeners, [xxxxx]},</div><div> {ssl_options, [</div><div> {cacertfile,"/path/to/cacert.pem"},</div><div>
{certfile,"/path/to/hostcert.pem"},</div><div> {keyfile,"/path/to/hostkey.pem"},</div><div> {verify,verify_peer},</div><div> {fail_if_no_peer_cert,true}]}</div>
<div> ] }</div></div><div>and for stomp I have:</div><div><div> {rabbitmq_stomp, [{tcp_listeners, [xxxxx]},</div><div> {ssl_listeners, [xxxxx]}]}</div></div><div><br></div><div>Of course I have enabled rabbitmq_auth_mechanism_ssl:</div>
<div><div>Status of node 'rabbitmq-dev@devhost001' ...</div><div>[{pid,30594},</div><div> {running_applications,</div><div> [{rabbitmq_auth_mechanism_ssl,</div><div> "RabbitMQ SSL authentication (SASL EXTERNAL)","2.5.0"},</div>
<div> {rabbitmq_management,"RabbitMQ Management Console","2.5.0"},</div><div> {webmachine,"webmachine","1.7.0-rmq2.5.0-hg0c4b60a"},</div><div> {rabbitmq_management_agent,"RabbitMQ Management Agent","2.5.0"},</div>
<div> {amqp_client,"RabbitMQ AMQP Client","2.5.0"},</div><div> {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.5.0"},</div><div> {mochiweb,"MochiMedia Web Server","1.3-rmq2.5.0-git9a53dbd"},</div>
<div> {inets,"INETS CXC 138 49","5.5.2"},</div><div> {rabbitmq_stomp,"Embedded Rabbit Stomp Adapter","2.5.0"},</div><div> {rabbit,"RabbitMQ","2.5.0"},</div>
<div> {ssl,"Erlang/OTP SSL application","4.1.4"},</div><div> {public_key,"Public key infrastructure","0.11"},</div><div> {crypto,"CRYPTO version 2","2.0.2.1"},</div>
<div> {mnesia,"MNESIA CXC 138 12","4.4.17"},</div><div> {os_mon,"CPO CXC 138 46","2.2.5"},</div><div> {sasl,"SASL CXC 138 11","2.1.9.3"},</div>
<div> {stdlib,"ERTS CXC 138 10","1.17.3"},</div><div> {kernel,"ERTS CXC 138 10","2.14.3"}]},</div></div><div>.......</div><div><br></div><div><br></div><div>Regards,</div>
</span>---<br>Massimo Paladin<br><br>email: <a href="mailto:massimo.paladin@gmail.com" target="_blank">massimo.paladin@gmail.com</a><br>website: <a href="http://www.mpaladin.com/" target="_blank">http://www.mpaladin.com</a><br>
flickr's page: <a href="http://flickr.com/photos/massimop" target="_blank">http://flickr.com/photos/massimop</a><br>