<meta charset="utf-8"><span class="Apple-style-span" style="font-family: &#39;Droid Sans&#39;, 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 &lt;0.231.0&gt; to SSL</div>

<div><br></div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>starting STOMP connection &lt;0.1585.0&gt; 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: &quot;Bad CONNECT&quot;</div><div>Detail: &quot;Missing login or passcode header(s)\n&quot;</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&lt;0.5884&gt;,{sslsocket,new_ssl,&lt;0.1581.0&gt;}} closed by client</div><div><br></div><div>=INFO REPORT==== 15-Jun-2011::17:17:35 ===</div><div>ending STOMP connection &lt;0.1585.0&gt; 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, [&#39;PLAIN&#39;, &#39;AMQPLAIN&#39;, &#39;EXTERNAL&#39;]},</div>

<div>               {tcp_listeners, [xxxxx]},</div><div>               {ssl_listeners, [xxxxx]},</div><div>               {ssl_options, [</div><div>                    {cacertfile,&quot;/path/to/cacert.pem&quot;},</div><div>

                    {certfile,&quot;/path/to/hostcert.pem&quot;},</div><div>                    {keyfile,&quot;/path/to/hostkey.pem&quot;},</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 &#39;rabbitmq-dev@devhost001&#39; ...</div><div>[{pid,30594},</div><div> {running_applications,</div><div>     [{rabbitmq_auth_mechanism_ssl,</div><div>          &quot;RabbitMQ SSL authentication (SASL EXTERNAL)&quot;,&quot;2.5.0&quot;},</div>

<div>      {rabbitmq_management,&quot;RabbitMQ Management Console&quot;,&quot;2.5.0&quot;},</div><div>      {webmachine,&quot;webmachine&quot;,&quot;1.7.0-rmq2.5.0-hg0c4b60a&quot;},</div><div>      {rabbitmq_management_agent,&quot;RabbitMQ Management Agent&quot;,&quot;2.5.0&quot;},</div>

<div>      {amqp_client,&quot;RabbitMQ AMQP Client&quot;,&quot;2.5.0&quot;},</div><div>      {rabbitmq_mochiweb,&quot;RabbitMQ Mochiweb Embedding&quot;,&quot;2.5.0&quot;},</div><div>      {mochiweb,&quot;MochiMedia Web Server&quot;,&quot;1.3-rmq2.5.0-git9a53dbd&quot;},</div>

<div>      {inets,&quot;INETS  CXC 138 49&quot;,&quot;5.5.2&quot;},</div><div>      {rabbitmq_stomp,&quot;Embedded Rabbit Stomp Adapter&quot;,&quot;2.5.0&quot;},</div><div>      {rabbit,&quot;RabbitMQ&quot;,&quot;2.5.0&quot;},</div>

<div>      {ssl,&quot;Erlang/OTP SSL application&quot;,&quot;4.1.4&quot;},</div><div>      {public_key,&quot;Public key infrastructure&quot;,&quot;0.11&quot;},</div><div>      {crypto,&quot;CRYPTO version 2&quot;,&quot;2.0.2.1&quot;},</div>

<div>      {mnesia,&quot;MNESIA  CXC 138 12&quot;,&quot;4.4.17&quot;},</div><div>      {os_mon,&quot;CPO  CXC 138 46&quot;,&quot;2.2.5&quot;},</div><div>      {sasl,&quot;SASL  CXC 138 11&quot;,&quot;2.1.9.3&quot;},</div>

<div>      {stdlib,&quot;ERTS  CXC 138 10&quot;,&quot;1.17.3&quot;},</div><div>      {kernel,&quot;ERTS  CXC 138 10&quot;,&quot;2.14.3&quot;}]},</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&#39;s page: <a href="http://flickr.com/photos/massimop" target="_blank">http://flickr.com/photos/massimop</a><br>