<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div><span>Hamid,</span></div><div><span><br></span></div><div><span>Maybe a bug in your program? :) <br></span></div><div><span><br></span></div><div><span>Take a look at http://stunnel.mirt.net/pipermail/stunnel-users/2012-January/003479.html <br></span></div><div><br><span></span></div><div><span>It may help.<br></span></div><div><br></div><div>Regards,</div><div><br></div><div>Jose<br></div> <div style="font-family: bookman old style,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight: bold;">From:</span></b> "Hamid.Shahid@sungard.com" <Hamid.Shahid@sungard.com><br> <b><span style="font-weight: bold;">To:</span></b> josealf@rocketmail.com;
stunnel-users@stunnel.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, January 25, 2012 12:58 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Strange Log<br> </font> </div> <br>
<div id="yiv1996056690">
<style><!--
#yiv1996056690
_filtered #yiv1996056690 {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv1996056690 {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered #yiv1996056690 {font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
#yiv1996056690
#yiv1996056690 p.yiv1996056690MsoNormal, #yiv1996056690 li.yiv1996056690MsoNormal, #yiv1996056690 div.yiv1996056690MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"serif";}
#yiv1996056690 a:link, #yiv1996056690 span.yiv1996056690MsoHyperlink
{
color:blue;
text-decoration:underline;}
#yiv1996056690 a:visited, #yiv1996056690 span.yiv1996056690MsoHyperlinkFollowed
{
color:purple;
text-decoration:underline;}
#yiv1996056690 pre
{
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
#yiv1996056690 p.yiv1996056690MsoAcetate, #yiv1996056690 li.yiv1996056690MsoAcetate, #yiv1996056690 div.yiv1996056690MsoAcetate
{
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"sans-serif";}
#yiv1996056690 span.yiv1996056690HTMLPreformattedChar
{
font-family:Consolas;}
#yiv1996056690 p.yiv1996056690msonormal, #yiv1996056690 li.yiv1996056690msonormal, #yiv1996056690 div.yiv1996056690msonormal
{
margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"serif";}
#yiv1996056690 p.yiv1996056690msochpdefault, #yiv1996056690 li.yiv1996056690msochpdefault, #yiv1996056690 div.yiv1996056690msochpdefault
{
margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"serif";}
#yiv1996056690 p.yiv1996056690msonormal1, #yiv1996056690 li.yiv1996056690msonormal1, #yiv1996056690 div.yiv1996056690msonormal1
{
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"sans-serif";}
#yiv1996056690 p.yiv1996056690msochpdefault1, #yiv1996056690 li.yiv1996056690msochpdefault1, #yiv1996056690 div.yiv1996056690msochpdefault1
{
margin-right:0in;
margin-left:0in;
font-size:10.0pt;
font-family:"serif";}
#yiv1996056690 span.yiv1996056690msohyperlink
{}
#yiv1996056690 span.yiv1996056690msohyperlinkfollowed
{}
#yiv1996056690 span.yiv1996056690htmlpreformattedchar
{}
#yiv1996056690 span.yiv1996056690emailstyle19
{}
#yiv1996056690 span.yiv1996056690emailstyle20
{}
#yiv1996056690 span.yiv1996056690msohyperlink1
{
color:blue;
text-decoration:underline;}
#yiv1996056690 span.yiv1996056690msohyperlinkfollowed1
{
color:purple;
text-decoration:underline;}
#yiv1996056690 span.yiv1996056690htmlpreformattedchar1
{
font-family:"Courier New";}
#yiv1996056690 span.yiv1996056690emailstyle191
{
font-family:"sans-serif";
color:windowtext;}
#yiv1996056690 span.yiv1996056690emailstyle201
{
font-family:"sans-serif";
color:#1F497D;}
#yiv1996056690 span.yiv1996056690EmailStyle33
{
font-family:"sans-serif";
color:#1F497D;}
#yiv1996056690 span.yiv1996056690EmailStyle35
{
font-family:"sans-serif";
color:#1F497D;}
#yiv1996056690 span.yiv1996056690BalloonTextChar
{
font-family:"sans-serif";}
#yiv1996056690 .yiv1996056690MsoChpDefault
{
font-size:10.0pt;}
_filtered #yiv1996056690 {
margin:1.0in 1.0in 1.0in 1.0in;}
#yiv1996056690 div.yiv1996056690WordSection1
{}
--></style>
<div>
<div class="yiv1996056690WordSection1">
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi Jose,</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I am getting the following log, when I am trying connect my program with Stunnel, which is connected to a remote server using SSL. Can you please have a look
and help me understand what is happening and what can be the reason?</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Many thanks!</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG5[8384:2416]: Reading configuration from file stunnel.conf</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG7[8384:2416]: Snagged 64 random bytes from C:/.rnd</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG7[8384:2416]: Wrote 1024 new random bytes to C:/.rnd</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG7[8384:2416]: PRNG seeded successfully</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG6[8384:2416]: Initializing SSL context for service SSLHOST</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG7[8384:2416]: Certificate: ABC_Cert.pem</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG7[8384:2416]: Certificate loaded</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:12 LOG7[8384:2416]: Key file: ABC_Cert_key.pem</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG7[8384:2416]: Private key loaded</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG7[8384:2416]: SSL options set: 0x00180004</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG6[8384:2416]: SSL context initialized</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG5[8384:2416]: Configuration successful</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG7[8384:2416]: accept socket: FD=652 allocated (non-blocking mode)</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG7[8384:2416]: Option SO_REUSEADDR set on accept socket</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG7[8384:2416]: Service SSLHOST bound to 127.0.0.1:2525</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:30 LOG7[8384:2416]: Service SSLHOST opened FD=652</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:2416]: local socket: FD=752 allocated (non-blocking mode)</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:2416]: Service SSLHOST accepted FD=752 from 127.0.0.1:52075</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:2416]: Creating a new thread</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:2416]: New thread created</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Service SSLHOST started</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Option TCP_NODELAY set on local socket</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG5[8384:12664]: Service SSLHOST accepted connection from 127.0.0.1:52075</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: remote socket: FD=768 allocated (non-blocking mode)</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG6[8384:12664]: connect_blocking: connecting <server_ip : port></span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: connect_blocking: s_poll_wait <server_ip : port>: waiting 10 seconds</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG5[8384:12664]: connect_blocking: connected <server_ip : port></span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG5[8384:12664]: Service SSLHOST connected remote server from <server_ip : port></span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Remote FD=768 initialized</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Option TCP_NODELAY set on remote socket</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="SV">2012.01.25 18:50:46 LOG7[8384:12664]: SNI: host name: <ip></span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Peer certificate was cached (1976 bytes)</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG6[8384:12664]: SSL connected: new session negotiated</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG6[8384:12664]: Negotiated ciphers: RC4-MD5 SSLv3 Kx=RSA Au=RSA Enc=RC4(128) Mac=MD5
</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: SSL closed on SSL_read</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Sending socket write shutdown</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Socket closed on read</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Sending SSL write shutdown</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG6[8384:12664]: SSL_shutdown successfully sent close_notify</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG5[8384:12664]: Connection closed: 133 bytes sent to SSL, 8 bytes sent to socket</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">2012.01.25 18:50:46 LOG7[8384:12664]: Service SSLHOST finished (0 left)</span></div>
<div class="yiv1996056690MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></div>
<div>
<div class="yiv1996056690MsoNormal" style="line-height: 115%;"><span style="font-size: 10pt; line-height: 115%; color: gray;"> </span></div>
<div class="yiv1996056690MsoNormal" style="line-height: 115%;"><span style="font-size: 10pt; line-height: 115%; color: gray;">Kind Regards,</span></div>
<div class="yiv1996056690MsoNormal" style="line-height: 115%;"><b><span style="font-size: 9pt; line-height: 115%; color: black;">Hamid Shahid
</span></b><span style="font-size: 10pt; line-height: 115%; color: gray;"></span></div>
</div>
</div>
</div>
</div><br><br> </div> </div> </div></body></html>