<font size=2 face="sans-serif">I have used Paho java client.</font>
<br>
<br><font size=2 face="sans-serif">I have built a sample java project and
is trying to connect .</font>
<br>
<br><font size=2 face="Consolas">MqttClient client = </font><font size=2 color=#820040 face="Consolas"><b>new</b></font><font size=2 face="Consolas">
MqttClient(</font><font size=2 color=#4200ff face="Consolas">"ssl://192.168.161.208:8883"</font><font size=2 face="Consolas">,
</font><font size=2 color=#4200ff face="Consolas">"rabbitmq"</font><font size=2 face="Consolas">);</font>
<br>
<br><font size=2 face="Consolas">         
              MqttConnectOptions
options = </font><font size=2 color=#820040 face="Consolas"><b>new</b></font><font size=2 face="Consolas">
MqttConnectOptions();</font>
<br><font size=2 face="Consolas">         
              options.setConnectionTimeout(60);</font>
<br><font size=2 face="Consolas">         
              options.setKeepAliveInterval(60);</font>
<br><font size=2 face="Consolas">         
              </font>
<br><font size=2 face="Consolas">         
              options.setSocketFactory(SslUtil.<i>getSocketFactory</i>(</font><font size=2 color=#4200ff face="Consolas">"C:/Users/397886/Desktop/HBase/workspacetrunk/TestMQTT/certificates/cacert.pem"</font><font size=2 face="Consolas">,</font>
<br><font size=2 face="Consolas">         
               
              </font><font size=2 color=#4200ff face="Consolas">"C:/Users/397886/Desktop/HBase/workspacetrunk/TestMQTT/certificates/cert.pem"</font><font size=2 face="Consolas">,
</font>
<br><font size=2 face="Consolas">         
               
              </font><font size=2 color=#4200ff face="Consolas">"C:/Users/397886/Desktop/HBase/workspacetrunk/TestMQTT/certificates/key.pem"</font><font size=2 face="Consolas">,
</font><font size=2 color=#4200ff face="Consolas">"MySecretPassword"</font><font size=2 face="Consolas">));</font>
<br>
<br>
<br><font size=2 face="Consolas">         
              client.connect(options);</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Thanks and Regards,<br>
Ankur Chakraborty<br>
</font>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Michael Klishin <mklishin@gopivotal.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Ankur5 C <ankur5.c@tcs.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">rabbitmq-discuss@lists.rabbitmq.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">27-06-2014 14:50</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [rabbitmq-discuss]
Unable to establish MQTT plugin in rabbitmq version : 3.1.3.</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2> On 27 June 2014 at 13:16:09, Ankur5 C (ankur5.c@tcs.com)
wrote:<br>
> > ** Reason for termination ==<br>
> ** {{badmatch,{error,{ssl_upgrade_error,timeout}}},<br>
> [{rabbit_mqtt_reader,handle_call,3},<br>
> {gen_server2,handle_msg,2},<br>
> {proc_lib,init_p_do_apply,3}]}<br>
>  <br>
> Is this due to any network related issues ? or anything else?<br>
<br>
SSL upgrade never finished because (a guess) the client wasn't<br>
actually configured to use SSL.<br>
<br>
How did you configure the client?<br>
--  <br>
MK  <br>
<br>
Staff Software Engineer, Pivotal/RabbitMQ<br>
</font></tt>
<br><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p>