<div dir="ltr"><div style>By default rabbitmq-c verifies that the hostname you&#39;re connecting to matches that of the CN on the SSL certificate of the host you&#39;re connecting to.<br></div><div style><br></div><div style>
When you specified the &lt;Server&gt; in amqp_listen does it match what you specified when you created the server certificate?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 12:10 AM, Lothe_Shashank <span dir="ltr">&lt;<a href="mailto:Lothe_Shashank@mahindrasatyam.com" target="_blank">Lothe_Shashank@mahindrasatyam.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
I downloaded Rabbitmq--c-master from<a href="https://github.com/alanxz/rabbitmq-c/tree/ssl" target="_blank">https://github.com/alanxz/rabbitmq-c/tree/ssl</a>. I understand that this package supports SSL functionalities for rabbitmq-c. I were able to compile
 and install this package and examples provided in it.<br>
<br>
</div>
</div>
Steps I followed on server side:<br>
</div>
step - 1.Created own CA and generated� the key<br>
</div>
<div>* For creating CA I followed this link <a href="http://www.rabbitmq.com/ssl.html" target="_blank">
http://www.rabbitmq.com/ssl.html</a> <br>
</div>
step-2:Next I created our own rabbitmq.config at /etc/rabbitmq .<br>
[<br>
� {rabbit, [<br>
���� {ssl_listeners, [5672]},<br>
���� {ssl_options, [{cacertfile,&quot;/path/to/testca/cacert.pem&quot;},<br>
������������������� {certfile,&quot;/path/to/server/cert.pem&quot;},<br>
������������������� {keyfile,&quot;/path/to/server/key.pem&quot;},<br>
������������������� {verify,verify_peer},<br>
������������������� {fail_if_no_peer_cert,false}]}<br>
�� ]}<br>
].<br>
</div>
<br>
</div>
step-3: Then I executed the program using following command<br>
�./amqps_listen &lt;Server&gt; 5672 amq.direct AAA &quot;/&lt;PATH_TO&gt;/cacert.pem&quot;� &quot;&lt;PATH_TO/key.pem&quot; &quot;&lt;PATH_TO/cert.pem&quot;<br>
<br>
<div>amqp_socket_open is failing with following message displayed on console:<br>
opening SSL/TLS connection<br>
</div>
<br>
I disabled firewall on server [sudo ufw disable] but still the same error. Kindly suggest.<br>
<br>
Thanks and regards,<br>
Shashank</div>
<br>
<hr>
<font face="Arial" color="Navy"><br>
DISCLAIMER:<br>
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or
 all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.<br>
</font>
</div>

<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>