<div dir="ltr">is the below the problem for "no shared secret" error.<div><br></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">The error was caused by a wrong order of commands. If SSL_new is </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">executed before SSL_CTX_use_certificate_file and </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">SSL_CTX_use_RSAPrivateKey_file, the certs and the private key will not </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">be passed to the SSL structure. Consequently, the server will not get </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">any "shared cipher" information. </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><br></span></div><div><a href="http://openssl.6102.n7.nabble.com/quot-no-shared-cipher-quot-td14216.html">http://openssl.6102.n7.nabble.com/quot-no-shared-cipher-quot-td14216.html</a><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><br></span></div><div><br></div><div>Thank you</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 6:56 AM, Muthuvel <span dir="ltr"><<a href="mailto:muthuvel.sivaprakasam@gmail.com" target="_blank">muthuvel.sivaprakasam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>  I  have 2 problem running my Server application that accept only SSL</div><div>connection.</div><div>1. If anyone try with telnet to the ip with the port, it's connected.</div><div>   If i terminate the telnet, server got killed.</div><div>2. If  i try SSL connection, it  is not happening, i am getting "no shared secret".</div><div><br></div><div>Any pointers to analyze this issues ?</div><div><br></div><div><br></div><br clear="all"><div><p style="margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    ACE VERSION: 6.3.2<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    HOST MACHINE and OPERATING SYSTEM:<u></u><u></u></span></p><div><p class="MsoNormal">        x86_64  windows 8.1 <u></u><u></u></p></div><div><p style="margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    TARGET MACHINE and OPERATING SYSTEM, if different from HOST: Same host <u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    COMPILER NAME AND VERSION (AND PATCHLEVEL):  MinGW gcc 4.8.1<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    </span><span style="font-size:11.5pt;font-family:Arial,sans-serif">THE $ACE_ROOT/ace/config.h FILE :</span><span style="font-family:Menlo,serif"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.5pt;font-family:Arial,sans-serif">        #define __ACE_INLINE__ 0<br>       #include "ace/config-win32.h"</span><u></u><u></u></p></div><div><p class="MsoNormal" style="color:rgb(80,0,80);font-size:13px">       <span style="font-size:11.5pt;font-family:Arial,sans-serif">THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE </span><u></u><u></u></p><p style="color:rgb(80,0,80);font-size:13px;margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">   include  platform_mingw32.GNU<u></u><u></u></span></p><p style="color:rgb(80,0,80);font-size:13px;margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    with ssl = 1<u></u><u></u></span></p><p style="color:rgb(80,0,80);font-size:13px;margin:0in 0in 0.0001pt"><span style="font-size:11.5pt;font-family:Arial,sans-serif">$ACE_ROOT/bin/MakeProjectCreator/config/default.features does not<br>exist.</span><span style="font-family:Menlo,serif"><u></u><u></u></span></p><p style="color:rgb(80,0,80);font-size:13px;margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">    AREA/CLASS/EXAMPLE AFFECTED:<u></u><u></u></span></p><p style="color:rgb(80,0,80);font-size:13px;margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif">   Newly created application </span></p><p style="color:rgb(80,0,80);font-size:13px;margin:0in 0in 0.0001pt"><span style="font-family:Menlo,serif"><br></span></p><div style="color:rgb(80,0,80);font-size:13px"><p class="MsoNormal"><span style="font-family:Menlo,serif">    DOES THE PROBLEM AFFECT:</span><br></p></div><div style="color:rgb(80,0,80);font-size:13px"><p class="MsoNormal">        <span style="font-family:Menlo,serif">      or  EXECUTION?</span><u></u><u></u></p></div><div style="color:rgb(80,0,80);font-size:13px"><p class="MsoNormal"><span style="font-family:Menlo,serif">          yes</span><u></u><u></u></p></div><div style="color:rgb(80,0,80);font-size:13px"><p class="MsoNormal"><span style="font-family:Menlo,serif">      SYNOPSIS:</span><u></u><u></u></p><div style="color:rgb(34,34,34)">1. If anyone try with telnet to the ip with the port, it's connected.</div><div style="color:rgb(34,34,34)">   If i terminate the telnet, server got killed.</div><div style="color:rgb(34,34,34)">2. If i try SSL connection, it  is not happening, i am getting "no shared secret".</div><div style="color:rgb(34,34,34)">Setting up ACE_SSL_Context  certificate and private_key method returning  -1.</div><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)">Thank you</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div style="color:rgb(80,0,80);font-size:13px"></div></font></span></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Regards<br>Muthuvel</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards<br>Muthuvel</div>
</div>