<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<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&nbsp; 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>
&nbsp; {rabbit, [<br>
&nbsp;&nbsp;&nbsp;&nbsp; {ssl_listeners, [5672]},<br>
&nbsp;&nbsp;&nbsp;&nbsp; {ssl_options, [{cacertfile,&quot;/path/to/testca/cacert.pem&quot;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {certfile,&quot;/path/to/server/cert.pem&quot;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {keyfile,&quot;/path/to/server/key.pem&quot;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {verify,verify_peer},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {fail_if_no_peer_cert,false}]}<br>
&nbsp;&nbsp; ]}<br>
].<br>
</div>
<br>
</div>
step-3: Then I executed the program using following command<br>
&nbsp;./amqps_listen &lt;Server&gt; 5672 amq.direct AAA &quot;/&lt;PATH_TO&gt;/cacert.pem&quot;&nbsp; &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" size="2"><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>
</body>
</html>