Hi&nbsp;<span class="Apple-style-span" style="color: rgb(34, 34, 34); ">Abhijit,</span><div><font class="Apple-style-span" color="#222222"><br></font></div><div><font class="Apple-style-span" color="#222222">I've spent hours wrestling with the "The message received was unexpected or&nbsp;<br>badly formatted" error.&nbsp;</font><span class="Apple-style-span" style="color: rgb(34, 34, 34); ">I was using SSL with .Net on Windows (rather than Mono on Linux which is where the docs come from.)</span><div><font class="Apple-style-span" color="#222222"><br></font></div><div><font class="Apple-style-span" color="#222222">I converted all the certifications to .pem format using OpenSSL.</font></div></div><div><font class="Apple-style-span" color="#222222"><br></font></div><div><font class="Apple-style-span" color="#222222">My config looks like this:</font></div><div><font class="Apple-style-span" color="#222222"><br></font></div><div><font class="Apple-style-span" color="#222222"><div>[&nbsp;</div><div>&nbsp; {rabbit, [&nbsp;</div><div>&nbsp; &nbsp; &nbsp;{ssl_listeners, [5671]},&nbsp;</div><div>&nbsp; &nbsp; &nbsp;{ssl_options, [{cacertfile,"C:/CAConfig/publicCertificate.pem"},&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {certfile,"C:/CAConfig/publicCertificate.pem"},&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {keyfile,"C:/CAConfig/private.pem"},&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {verify,verify_peer},&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {fail_if_no_peer_cert,true}]}&nbsp;</div><div>&nbsp; &nbsp;]}&nbsp;</div><div>].</div><div><br></div><div>Hope that helps!</div><div><br></div><div>-Dan</div></font></div>