<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have been led to stunnel as the way to get a Flash
application to communicate securely with Red5 server.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Red5 doesn’t directly support ssl connectivity but
using rtmps protocol (rtmp tunnelled via https) clients should be able to
connect to Red5 if stunnel </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>handles the encrypted traffic on port 443 and passes
unencrypted communications back and forth to the Red5 on a port it expects to
receive rtmp communication..</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>(refer <a
href="http://www.adobe.com/devnet/flashcom/articles/firewalls_proxy04.html">http://www.adobe.com/devnet/flashcom/articles/firewalls_proxy04.html</a>)</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The log file I get when I attempt to talk rtmps is shown
below</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3384]:
New thread created</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
https started</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
FD 224 in non-blocking mode</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
TCP_NODELAY option set on local socket</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG5[3932:3664]:
https accepted connection from 127.0.0.1:1249</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
FD 248 in non-blocking mode</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
https connecting 127.0.0.1:1935</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]: connect_wait:
waiting 10 seconds</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]: connect_wait:
connected</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG5[3932:3664]:
https connected remote server from 127.0.0.1:1250</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
Remote FD=248 initialized</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
TCP_NODELAY option set on remote socket</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
SSL state (connect): before/connect initialization</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:19:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
SSL state (connect): SSLv3 write client hello A</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:24:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG6[3932:3664]: init_ssl:
s_poll_wait timeout</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:24:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG5[3932:3664]:
Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2007.04.25 </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>18:24:04</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> LOG7[3932:3664]:
https finished (0 left)</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The stunnel.conf file has the following settings that
pertain specifically to this situation</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>client = yes</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[https]</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>accept = 443</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>connect = 1935</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What I seem to see (according to the logfile) is that an ssl
connection is successfully established but no subsequent communication takes
place after the connection has been made. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>At this point my Flash application doesn’t send any
messages via the ssl connection which seems to implicate my client as being the
source of my problem.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I would appreciate any advice on how I can best investigate
this whole situation to resolve the issue.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Regards,</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>David Schulberg</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>email: <a href="mailto:davids@evertech.com.au">davids@evertech.com.au</a></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</body>
</html>