<font size=2 face="sans-serif">Here is my code:</font>
<br>
<br><font size=2 face="sans-serif">The same one which has been given in
your example. </font>
<br>
<br><font size=2 face="sans-serif">import java.io.*;</font>
<br><font size=2 face="sans-serif">import java.security.*;</font>
<br>
<br>
<br><font size=2 face="sans-serif">import com.rabbitmq.client.*;</font>
<br>
<br><font size=2 face="sans-serif">public class Example1</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">    public static void main(String[]
args) throws Exception</font>
<br><font size=2 face="sans-serif">    {</font>
<br>
<br><font size=2 face="sans-serif">        ConnectionFactory
factory = new ConnectionFactory();</font>
<br><font size=2 face="sans-serif">        factory.setHost("192.168.161.197");</font>
<br><font size=2 face="sans-serif">        factory.setPort(5671);</font>
<br>
<br><font size=2 face="sans-serif">        factory.useSslProtocol();</font>
<br><font size=2 face="sans-serif">        // Tells
the library to setup the default Key and Trust managers for you</font>
<br><font size=2 face="sans-serif">        // which
do not do any form of remote server trust verification</font>
<br>
<br><font size=2 face="sans-serif">        Connection
conn = factory.newConnection();</font>
<br><font size=2 face="sans-serif">        Channel
channel = conn.createChannel();</font>
<br>
<br><font size=2 face="sans-serif">        //non-durable,
exclusive, auto-delete queue</font>
<br><font size=2 face="sans-serif">        channel.queueDeclare("rabbitmq-java-test",
false, true, true, null);</font>
<br><font size=2 face="sans-serif">        channel.basicPublish("",
"rabbitmq-java-test", null, "Hello, World".getBytes());</font>
<br>
<br>
<br><font size=2 face="sans-serif">        GetResponse
chResponse = channel.basicGet("rabbitmq-java-test", false);</font>
<br><font size=2 face="sans-serif">        if(chResponse
== null) {</font>
<br><font size=2 face="sans-serif">           
System.out.println("No message retrieved");</font>
<br><font size=2 face="sans-serif">        } else {</font>
<br><font size=2 face="sans-serif">           
byte[] body = chResponse.getBody();</font>
<br><font size=2 face="sans-serif">           
System.out.println("Recieved: " + new String(body));</font>
<br><font size=2 face="sans-serif">        }</font>
<br>
<br>
<br><font size=2 face="sans-serif">        channel.close();</font>
<br><font size=2 face="sans-serif">        conn.close();</font>
<br><font size=2 face="sans-serif">    }</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif"><br>
Thanks and Regards,<br>
Ankur Chakraborty<br>
Mailto: ankur5.c@tcs.com<br>
Website: </font><a href=http://www.tcs.com/><font size=2 face="sans-serif">http://www.tcs.com</font></a><font size=2 face="sans-serif"><br>
____________________________________________<br>
Experience certainty.        IT Services<br>
                
       Business Solutions<br>
                
       Consulting<br>
____________________________________________</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Michael Klishin <mklishin@pivotal.io></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">Legacy list about RabbitMQ
<rabbitmq-discuss@lists.rabbitmq.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">31-07-2014 12:39</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [rabbitmq-discuss]
Create an encrypted SSL connection without having to verify certificate</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On 31 July 2014 at 11:04:07, Ankur5 C (ankur5.c@tcs.com)
wrote:<br>
> ><br>
> But could you please try once with the example given in :<br>
>  <br>
> </font></tt><a href=https://www.rabbitmq.com/ssl.html:><tt><font size=2>https://www.rabbitmq.com/ssl.html:</font></tt></a><tt><font size=2>
Connecting without  <br>
> validating certificates<br>
<br>
Ankur,<br>
<br>
The example in </font></tt><a href=https://gist.github.com/michaelklishin/4146cec261f0fd30cc07><tt><font size=2>https://gist.github.com/michaelklishin/4146cec261f0fd30cc07</font></tt></a><tt><font size=2><br>
is no different from "Connecting without validating certificates"
on<br>
</font></tt><a href=https://www.rabbitmq.com/ssl.html><tt><font size=2>https://www.rabbitmq.com/ssl.html</font></tt></a><tt><font size=2>
in the key part: how it sets up<br>
a ConnectionFactory instance.<br>
<br>
I assure you it is *not* a RabbitMQ issue, there's enough evidence<br>
of that in this thread alone. Something is wrong with your code<br>
(which you never posted) or your local environment. <br>
<br>
Please proceed to investigate the issue on your own.<br>
<br>
If this still seems too hard, Pivotal offers professional services around
RabbitMQ. Email info@rabbitmq.com to find out more.<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>